In the file fonts.conf, the .fonts.conf and local.conf lines that import these 2 external files are inverted. Thus, the following: <!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include> <!-- Load local system customization file --> <include ignore_missing="yes">conf.d</include> <include ignore_missing="yes">local.conf</include> Should read instead: <!-- Load local system customization file --> <include ignore_missing="yes">conf.d</include> <include ignore_missing="yes">local.conf</include> <!-- Load per-user customization file --> <include ignore_missing="yes">~/.fonts.conf</include> This way, the user fontconfig file would have priority over the system-wide configuration.
probably what is needed is for the include of ~/.fonts.conf to be moved to a file in conf.d so you can order things before and after it.
Shouldn't ~/.fonts.conf rules have more weight than any configuration set in fonts.conf, conf.d and local.conf? If so, shoudn't it be included after conf.d and local.conf to have priority?
By creating a conf.d file 50-userconf.conf and moving the include of the users configuration file there, we can order all of these conf files relative to the user configuration; those with lower numbers will be loaded earlier, those with higher numbers will get loaded later. This provides the flexibility to add bits on both sides of the user configuration as is needed in many cases.
Great idea. Please do that.
This functionality has been implemented in fontconfig 2.4.0
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.