Bug 7663 - fonts.conf lines inverted
Summary: fonts.conf lines inverted
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2_1
Hardware: x86 (IA32) FreeBSD
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 8100
  Show dependency treegraph
 
Reported: 2006-07-27 16:20 UTC by Charles
Modified: 2006-09-17 14:49 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.