fontconfig/conf.d
Nicolas Mailhot 9c46ef4aac Use an URN for DTD ID
XML tools interpret “fonts.dtd” as a relative path.

Unfortunately, that can not work now that the configuration is spread over
multiple system-dependant directories, without a common relative path to this
file. And, an absolute path can not be defined in a system-independant way.
System independance is a requirement to share config files between systems.

Therefore, replace the broken relative path by a formal URN, that will work the
same way on all systems, without network access.

This makes the DTD registerable with commands like:
$ xmlcatalog --noout --add system \
                           "urn:fontconfig:fonts.dtd" \
                           "file:///usr/share/xml/fontconfig/fonts.dtd" \
                           /etc/xml/catalog

That enables easy config file checking:
$ xmllint --loaddtd ${config_file} >/dev/null
2020-03-28 15:01:35 +01:00
..
05-reset-dirs-sample.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
09-autohint-if-no-hinting.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-autohint.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-hinting-full.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-hinting-medium.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-hinting-none.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-hinting-slight.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-no-sub-pixel.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-scale-bitmap-fonts.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-sub-pixel-bgr.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-sub-pixel-rgb.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-sub-pixel-vbgr.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-sub-pixel-vrgb.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
10-unhinted.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
11-lcdfilter-default.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
11-lcdfilter-legacy.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
11-lcdfilter-light.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
20-unhint-small-vera.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
25-unhint-nonlatin.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
30-metric-aliases.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
40-nonlatin.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
45-generic.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
45-latin.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
49-sansserif.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
50-user.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
51-local.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
60-generic.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
60-latin.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
65-fonts-persian.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
65-khmer.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
65-nonlatin.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
69-unifont.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
70-no-bitmaps.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
70-yes-bitmaps.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
80-delicious.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
90-synthetic.conf Use an URN for DTD ID 2020-03-28 15:01:35 +01:00
Makefile.am Add FC_FONT_HAS_HINT property to see if font has hinting or not. 2019-07-29 10:19:26 +00:00
README.in Bug 63452 - conf.d/README outdated 2013-05-13 12:14:29 +09:00

README.in

conf.d/README

Each file in this directory is a fontconfig configuration file.  Fontconfig
scans this directory, loading all files of the form [0-9][0-9]*.conf.
These files are normally installed in @TEMPLATEDIR@
and then symlinked here, allowing them to be easily installed and then
enabled/disabled by adjusting the symlinks.

The files are loaded in numeric order, the structure of the configuration
has led to the following conventions in usage:

 Files begining with:	Contain:
 
 00 through 09		Font directories
 10 through 19		system rendering defaults (AA, etc)
 20 through 29		font rendering options
 30 through 39		family substitution
 40 through 49		generic identification, map family->generic
 50 through 59		alternate config file loading
 60 through 69		generic aliases, map generic->family
 70 through 79		select font (adjust which fonts are available)
 80 through 89		match target="scan" (modify scanned patterns)
 90 through 99		font synthesis