LoadFontfile
Load a font file (.otf, .ttf, .pfb) and associate it with an internal name. If a glyph is not found in the font file, an error will be raised (this can be configured via the Options command). You can specify fallbacks as a child element of Loadfontfile.
Allowed attributes: filename, marginprotrusion, name, oldstylefigures, smallcaps, space
Child elements: Fallback
The name (with extension) of the font file.
The amount of protrusion glyphs like -, . and - stick into the right margin. Highly font dependent. Defaults to 0.
The internal name of the font file. To be used within DefineFontfamily.
Use oldstyle figures if the font includes them. (OpenType feature »onum«)
yes: |
Use oldstyle figures. |
no: |
Use lining figures. |
Use small caps glyphs when the font supplies them.
yes: |
Use small caps for this font. |
no: |
Don't switch to small caps (default). |
The natural width between words. Can be stretched by 30% and shrunk by 10%. Defaults to 25. The value is a percentile of the font size.
The fonts are optionally taken from the local search path. On Windows the path %WINDIR%\Fonts (usually C:\Windows\Fonts) and on Mac OS X the paths /Library/Fonts and /System/Library/Fonts can be used as fallbacks for fonts. This can be configured with the setting fontpath.