diff options
author | Nicolas Mailhot <nim@fedoraproject.org> | 2020-03-28 15:01:35 +0100 |
---|---|---|
committer | Nicolas Mailhot <nim@fedoraproject.org> | 2020-03-28 15:01:35 +0100 |
commit | 9c46ef4aac87c42d013d0e7380b6aeb03e1a9949 (patch) | |
tree | e6753a73b1370507703916f07cd283869a3ef553 /fonts.conf.in | |
parent | 6f6b39780215714386606ca1c5457a7106639ff4 (diff) |
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
Diffstat (limited to 'fonts.conf.in')
-rw-r--r-- | fonts.conf.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fonts.conf.in b/fonts.conf.in index 5a1a4d0..86f06bd 100644 --- a/fonts.conf.in +++ b/fonts.conf.in @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> <!-- /etc/fonts/fonts.conf file to configure system font access --> <fontconfig> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> |