Blame fontconfig-templates/rescaling-font-template.txt

Packit 46375d
▶ Documentation for rescaling-font-template.conf
Packit 46375d
Packit 46375d
This advanced template adds one rescaling rule to the basic template. Thus, it
Packit 46375d
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 rescales [fontname] by a factor of [factor].
Packit 46375d
Packit 46375d
The typical use-case is a font which original sizing does not fit well with the
Packit 46375d
other system fonts. We want to be able to replace fonts with other similar
Packit 46375d
fonts without the text size changing dramatically.
Packit 46375d
Packit 46375d
Of course it is much better get the font fixed upstream, since users of systems
Packit 46375d
without this rescaling rule will still draw the font using its original size.
Packit 46375d
That will make exchange of electronic documents that use this font impractical.
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 [factor] with the appropriate
Packit 46375d
values in the 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
A [factor] example would be:
Packit 46375d
1.2
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>