Blame fontconfig-templates/basic-font-template.txt
|
Packit |
46375d |
▶ Documentation for basic-font-template.conf
|
|
Packit |
46375d |
|
|
Packit |
46375d |
This basic fontconfig template is sufficient for the needs of most fonts. It
|
|
Packit |
46375d |
includes two 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 |
|
|
Packit |
46375d |
If you have more advanced needs, take a look at the other templates.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
Please replace [fontname] and [genericname] with the appropriate values in the
|
|
Packit |
46375d |
following blocks of instructions.
|
|
Packit |
46375d |
|
|
Packit |
46375d |
A [fontname] 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>
|