Blame fontconfig-templates/substitution-font-template.txt
|
Packit |
46375d |
▶ Documentation for substitution-font-template.conf
|
|
Packit |
46375d |
|
|
Packit |
46375d |
This advanced template adds one substitution rule to the basic template. Thus,
|
|
Packit |
46375d |
it includes three rules:
|
|
Packit |
46375d |
— the first one tells fontconfig it can use the font named [fontname] when an
|
|
Packit |
46375d |
application asks for the generic family [genericname].
|
|
Packit |
46375d |
— the second one tells fontconfig it can complete the font named [fontname]
|
|
Packit |
46375d |
with glyphs taken from fonts registered under [genericname].
|
|
Packit |
46375d |
— the third one tells fontconfig it can use [fontname] instead of
|
|
Packit |
46375d |
[otherfontname] if an application asks for [otherfontname].
|
|
Packit |
46375d |
|
|
Packit |
46375d |
The typical use-case is when you package [fontname], which is a derivative of
|
|
Packit |
46375d |
[otherfontname], and want the system to propose [fontname] if [otherfontname]
|
|
Packit |
46375d |
is not available.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
If you have different needs, take a look at the other templates.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
Please replace [fontname], [genericname], and [otherfontname] with the
|
|
Packit |
46375d |
appropriate values in the following blocks of instructions.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
A [fontname] or [otherfontname] example would be:
|
|
Packit |
46375d |
DejaVu Sans
|
|
Packit |
46375d |
It's the name under which the font appears in GUI font drop-downs.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
Fontconfig generics ([genericname]) currently include:
|
|
Packit |
46375d |
— sans-serif
|
|
Packit |
46375d |
— serif
|
|
Packit |
46375d |
— monospace
|
|
Packit |
46375d |
— fantasy
|
|
Packit |
46375d |
– cursive
|
|
Packit |
46375d |
|
|
Packit |
46375d |
Processing the resulting file through xmllint with the "format" flag is usually
|
|
Packit |
46375d |
a good idea.
|
|
Packit |
46375d |
$ xmllint --format -o [XX]-[fontname].conf [yourfile]
|
|
Packit |
46375d |
The output file will be named:
|
|
Packit |
46375d |
[XX]-[fontname].conf
|
|
Packit |
46375d |
where [XX] should be a two-digit number corresponding to the font priority in
|
|
Packit |
46375d |
fontconfig.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
© 2008-2009 Nicolas Mailhot <nim at fedoraproject dot org>
|