Commit Graph

21 Commits

Author SHA1 Message Date
Akira TAGOH 528b17b283 Drop elements with its namespace from conf
The translation related elements are now provided by separate files
fontconfig.its and fontconfig.loc. we don't need to have it in conf
anymore.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/234
2020-05-25 10:44:05 +09:00
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
Akira TAGOH 9a0fcb948f Add the ruleset description support
Trying to address what these configuration files really do.
This change allows to see the short description that mention
the purpose of the content in the config file and obtain
them through API.

This change also encourage one who want to make some UI for
the user-specific configuration management. it is the main
purpose of this change for me though.

Aside from that, I've also made programs translatable. so
we see more dependencies on the build time for gettext,
and itstool to generate PO from xml.
2017-11-07 15:24:54 +09:00
David Kaspar [Dee'Kej] cc67d7df17 conf.d: Drop aliases for (URW)++ fonts
They have become a part of (URW)++ upstream release now:
  https://github.com/ArtifexSoftware/urw-base35-fonts/tree/master/fontconfig
2017-09-14 15:08:16 +09:00
Masamichi Hosoda 883b5cf48b Update aliases for URW June 2016
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=c8342b4a7b6cdcc4cb1261bf2b008f6df257b5c6
http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018
2016-09-23 20:39:35 +09:00
Masamichi Hosoda 815cc98d6a Fix PostScript font alias name
`Helvetica Condensed' is not PostScript base 35 fonts.
`Helvetica Narrow' is PostScript base 35 fonts.
2016-09-16 21:32:51 +09:00
Akira TAGOH b732bf057f Update aliases for new URW fonts
Patch from Tom Yan

https://bugs.freedesktop.org/show_bug.cgi?id=85225
2014-11-06 13:15:09 +09:00
Akira TAGOH e7121de237 Revert "Bug 73291 - poppler does not show fl ligature"
This reverts commit c6aa4d4bfc.

This issue has been fixed in poppler and we no longer need to patch it out in fontconfig.
2014-10-03 12:26:42 +09:00
Akira TAGOH c6aa4d4bfc Bug 73291 - poppler does not show fl ligature
commented out substitutions for TeX Gyre Termes font
until the broken font are fixed.

https://bugs.freedesktop.org/show_bug.cgi?id=73291
2014-03-18 11:52:18 +09:00
Frederic Crozat 2e933bd8bc Add metric aliases for additional Google ChromeOS fonts
MS fonts Cambria, Symbol and Calibri have compat metrics fonts
from ChromeOS.

https://bugs.freedesktop.org/show_bug.cgi?id=72395
2013-12-09 15:17:25 +09:00
Frederic Crozat 6a06e29491 Fix inversion between Tinos and Cousine in the comment 2013-12-09 15:17:17 +09:00
Jan Alexander Steffens (heftig) 643f8088f0 Further changes to 30-metric-aliases.conf
Big changes:
* Handle more PostScript fonts (further reduce 30-urw-aliases.conf)
* Update the big comment

Specific->Generic:
* Add missing maps, for symmetry

Generic<->Generic:
* Add "Helvetica Condensed" <-> "Arial Narrow" map

Generic->Specific:
* Add missing Courier -> Cursor alias
* Add "Helvetica Condensed" -> "Heros Cn" alias
* Remove Arial -> Heros and "Times New Roman" -> Termes maps
2013-09-20 12:52:11 +09:00
Akira TAGOH 010c973df5 Bug 68340 - More metric compat fonts 2013-08-21 13:12:22 +09:00
Akira TAGOH 1023049767 Fix a typo 2013-03-01 18:41:27 +09:00
Akira TAGOH db69bf6ecd Bug 60783 - Add Liberation Sans Narrow to 30-metric-aliases.conf
Add Liberation Sans Narrow as an alias for Arial Narrow
2013-03-01 18:31:01 +09:00
Akira TAGOH 25ccc3f3d2 Bug 47721 - Add ChromeOS fonts to 30-metric-aliases.conf 2012-04-23 11:16:02 +09:00
Akira TAGOH 2b010e46e6 Bug 44826 - <alias> must contain only a single <family>
Fix invalid syntax around alias elements in 30-metric-aliases.conf
40-nonlatin.conf and 45-latin.conf.

Patch from lolilolicon
2012-02-21 16:23:22 +09:00
Behdad Esfahbod 52742ff86b Replace spaces with tabs in conf files 2009-06-28 13:49:09 -04:00
Behdad Esfahbod a504f6b539 Simplify/improve 30-metric-aliases.conf 2007-11-05 18:12:51 -05:00
Behdad Esfahbod 7465091fa9 Remove redundant/obsolete comments from conf files.
Conf files had an initial comment mentioning the files' name.
This was outdated and wrong in most cases.  There's no real use in that.
2007-11-05 16:43:14 -05:00
Behdad Esfahbod 39968fb223 Add/update config files from Fedora. 2007-11-05 16:14:35 -05:00