Bug 7663

Summary: fonts.conf lines inverted
Product: fontconfig Reporter: Charles <landemaine>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: abelcheung, freedesktop
Version: 2_1   
Hardware: x86 (IA32)   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 8100    

Description Charles 2006-07-27 16:20:27 UTC
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.
Comment 1 Keith Packard 2006-09-01 12:21:38 UTC
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.
Comment 2 Charles 2006-09-01 13:31:13 UTC
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?
Comment 3 Keith Packard 2006-09-01 22:30:25 UTC
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.
Comment 4 Behdad Esfahbod 2006-09-05 15:06:40 UTC
Great idea.  Please do that.
Comment 5 Keith Packard 2006-09-17 14:49:44 UTC
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.