| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [Source Pro] \Sourcepro {SourceSerifPro,SourceSansPro,SourceCodePro} |
| 4 |
{\serif \sans \mono \light \elight \bolder \medium \caps} {\rm \bf \it \bi} {Termes} |
| 5 |
{[SourceSerifPro-Regular]} |
| 6 |
{\_def\_fontnamegen {[Source\_typfV Pro-\_currV]:\_capsV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\serif ..... Serif family (default)^^J |
| 11 |
\sans ...... Sans family^^J |
| 12 |
\mono ...... Code family^^J |
| 13 |
\light ..... \rm=Light, \bf=Semibold^^J |
| 14 |
\elight .... \rm=Extra light, \bf=Regular^^J |
| 15 |
\bolder .... \rm=Semibold, \bf=Black^^J |
| 16 |
\medium .... \rm=Medium, \bf=Bold (only for \mono family)^^J |
| 17 |
\caps ...... caps & small caps, only for \sans (\serif: only \rm,\bf)^^J |
| 18 |
}} |
| 19 |
|
| 20 |
\_moddef \resetmod {\_fsetV typf=Serif,caps={} \_fvars Regular Bold RegularIt BoldIt } |
| 21 |
\_moddef \serif {\_fsetV typf=Serif } |
| 22 |
\_moddef \sans {\_fsetV typf=Sans } |
| 23 |
\_moddef \mono {\_fsetV typf=Code } |
| 24 |
\_moddef \light {\_fvars Light Semibold LightIt SemiboldIt } |
| 25 |
\_moddef \elight {\_fvars ExtraLight Regular ExtraLightIt RegularIt } |
| 26 |
\_moddef \bolder {\_fvars Semibold Black SemiboldIt BlackIt } |
| 27 |
\_moddef \medium {\_fsetV typf=Code \_fvars Medium Bold MediumIt BoldIt } |
| 28 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 29 |
\_moddef \nocaps {\_fsetV caps={} } |
| 30 |
|
| 31 |
\_initfontfamily % new font family must be initialized |
| 32 |
|
| 33 |
\_loadmath {[texgyretermes-math]} |
| 34 |
|
| 35 |
\_endcode |
| 36 |
|
| 37 |
See the file `f-heros.opm` for information about principles of such |
| 38 |
font-macro-files. |
| 39 |
|