| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [Linux Libertine] \Libertine {Free Linux Libertine fonts} |
| 4 |
{\sans \mono \caps} {\rm \bf \it \bi \initials \displ \keybr} {} |
| 5 |
{Linux Libertine O} |
| 6 |
{\_def\_fontnamegen {Linux \_mainfamV\_V\_subfamV O/\_currV:\_capsV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers^^J |
| 10 |
\sans ...... smaller serifs^^J |
| 11 |
\caps ...... caps & small caps^^J |
| 12 |
Special variants:^^J |
| 13 |
\initials .. special initials (only uppercase letters)^^J |
| 14 |
\displ ..... display variant, suitable at big sizes^^J |
| 15 |
\mono ...... non-proportional^^J |
| 16 |
\keybr ..... keyboard, emulates keyboard buttons^^J |
| 17 |
}} |
| 18 |
|
| 19 |
\_moddef \resetmod {\_fsetV mainfam=Libertine,subfam={},caps={} \_fvars {} B I BI } |
| 20 |
\_moddef \sans {\_fsetV mainfam=Biolinum,subfam={} } |
| 21 |
\_moddef \mono {\_fsetV mainfam=Libertine,subfam={Mono } \_fvars {} . . . } |
| 22 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 23 |
\_moddef \nocaps {\_fsetV caps={} } |
| 24 |
|
| 25 |
\_famvardef \initials {\_fsetV mainfam=Libertine,subfam={Initials } \_fvars {} . . . \rm} |
| 26 |
\_famvardef \displ {\_fsetV mainfam=Libertine,subfam={Display } \_fvars {} . . . \rm} |
| 27 |
\_famvardef \keybr {\_fsetV mainfam=Biolinum,subfam={Keyboard } \_fvars {} . . . \rm} |
| 28 |
|
| 29 |
\_initfontfamily % new font family must be initialized |
| 30 |
|
| 31 |
\_endcode |
| 32 |
|
| 33 |
This is another example where the font names (no font files) are declared. |
| 34 |
Linux Libertine font is typically installed on Linux systems. |
| 35 |
The \_V macro generates a space. We provide following fonts: |
| 36 |
|
| 37 |
normal: "Linux Libertine O:\_fontfeatures" |
| 38 |
"Linux Libertine O/B:\_fontfeatures" |
| 39 |
"Linux Libertine O/I:\_fontfeatures" |
| 40 |
"Linux Libertine O/BI:\_fontfeatures" |
| 41 |
mono : "Linux Libertine Mono O:\_fontfeatures" |
| 42 |
sans: "Linux Biolinum O:\_fontfeatures" |
| 43 |
"Linux Biolinum O/B:\_fontfeatures" |
| 44 |
"Linux Biolinum O/I:\_fontfeatures" |
| 45 |
"Linux Biolinum O/BI:\_fontfeatures" |
| 46 |
special: "Linux Libertine Initials O:\_fontfeatures" |
| 47 |
"Linux Libertine Display O:\_fontfeatures" |
| 48 |
"Linux Biolinum Keyboard O:\_fontfeatures" |
| 49 |
|
| 50 |
Another file f-libertine.opm declares Linux Libertine family from font files. |