| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [EB Garamond] \EBGaramond {Based on Garamond} |
| 4 |
{\medium \semibold \caps \swash} {\rm \bf \it \bi \initials} {Garamond-Math} |
| 5 |
{[EBGaramond-Regular]} |
| 6 |
{\_def\_fontnamegen {[EBGaramond-\_currV]:\_capsV\_swaV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\caps ...... caps & small caps^^J |
| 11 |
\swash ..... alternative capitals for \it, \bi, only non-accented letters^^J |
| 12 |
\medium .... medium weight^^J |
| 13 |
\semibold .. semibold weight (only \bf, \bi are changed)^^J |
| 14 |
Variant:^^J |
| 15 |
\initials .. Initials, only letters ADFGLNOQT^^J |
| 16 |
}} |
| 17 |
|
| 18 |
\_moddef \resetmod {\_fsetV caps={},swa={} \_fvars Regular Bold Italic BoldItalic } |
| 19 |
\_moddef \medium {\_fvars Medium ExtraBold MediumItalic ExtraBoldItalic } |
| 20 |
\_moddef \semibold {\_fvars Regular SemiBold Italic SemiBoldItalic } |
| 21 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 22 |
\_moddef \nocaps {\_fsetV caps={} } |
| 23 |
\_moddef \swash {\_fsetV swa=+swsh; } |
| 24 |
\_moddef \noswash {\_fsetV swa={} } |
| 25 |
|
| 26 |
\_famvardef \initials {\_fvars Initials . . . \rm} |
| 27 |
|
| 28 |
|
| 29 |
\_initfontfamily % new font family must be initialized |
| 30 |
|
| 31 |
\_loadmath {[Garamond-Math]} |
| 32 |
|
| 33 |
\_endcode |
| 34 |
|
| 35 |
See the file `f-heros.opm` for information about principles of such |
| 36 |
font-macro-files. |
| 37 |
|