| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [Garamond Libre] \Garamondl {Free, derived from old style font family} |
| 4 |
{\caps \swash} {\rm \bf \it \bi} {Garamond-Math} |
| 5 |
{[GaramondLibre-Regular]} |
| 6 |
{\_def\_fontnamegen |
| 7 |
{[GaramondLibre-\_currV]:script=latn;\_capsV\_swaV\_fontfeatures}} |
| 8 |
|
| 9 |
\_wlog{\_detokenize{% |
| 10 |
Modifiers:^^J |
| 11 |
\caps ...... caps & small caps, only non-accented letters^^J |
| 12 |
\swash ..... alternative capitals for \it, \bi, only non-accented letters^^J |
| 13 |
}} |
| 14 |
|
| 15 |
\_moddef \resetmod {\_fsetV caps={},swa={} \_fvars Regular Bold Italic Bolditalic } |
| 16 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum;-liga; } |
| 17 |
\_moddef \nocaps {\_fsetV caps={} } |
| 18 |
\_moddef \swash {\_fsetV swa=+swsh; } |
| 19 |
\_moddef \noswash {\_fsetV swa={} } |
| 20 |
|
| 21 |
\_initfontfamily % new font family must be initialized |
| 22 |
|
| 23 |
\_loadmath {[Garamond-Math]} |
| 24 |
|
| 25 |
\_endcode |
| 26 |
|