| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [Cabin] \Cabin {Inspired by Gill's typefaces + touch of a modernism} |
| 4 |
{\caps \cond \medium \semibold} {\rm \bf \it \bi} {FiraMath} |
| 5 |
{[Cabin-Regular]} |
| 6 |
{\_def\_fontnamegen{[Cabin\_condV-\_currV\_condV]:\_capsV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\caps ...... caps & small caps (unavailable in condensed variants)^^J |
| 11 |
\cond ...... condensed variants^^J |
| 12 |
\medium .... medium weight (only \rm, \it)^^J |
| 13 |
\semibold .. semibold weight (only \bf, \bi)^^J |
| 14 |
}} |
| 15 |
|
| 16 |
\_moddef \resetmod {\_fsetV caps={},cond={} \_fvars Regular Bold Italic BoldItalic } |
| 17 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 18 |
\_moddef \nocaps {\_fsetV caps={} } |
| 19 |
\_moddef \cond {\_fsetV cond=Condensed } |
| 20 |
\_moddef \nocond {\_fsetV cond={} } |
| 21 |
\_moddef \medium {\_fvars Medium Bold MediumItalic BoldItalic } |
| 22 |
\_moddef \semibold {\_fvars Regular SemiBold Italic SemiBoldItalic } |
| 23 |
|
| 24 |
\_initfontfamily % new font family must be initialized |
| 25 |
|
| 26 |
\_ifmathloading |
| 27 |
\_loadmath {[FiraMath-Regular]} |
| 28 |
\_addUmathfont \_xits {[XITSMath-Regular]}{} {[XITSMath-Bold]}{} {} |
| 29 |
\_addto\_frak{\_fam\_xits}\_addto\_cal{\_fam\_xits} \_public \frak \cal ; |
| 30 |
% \bf, \bi from FiraMath: |
| 31 |
\_let\_bsansvariables=\_bfvariables |
| 32 |
\_let\_bsansGreek=\_bfGreek |
| 33 |
\_let\_bsansgreek=\_bfgreek |
| 34 |
\_let\_bsansdigits=\_bfdigits |
| 35 |
\_let\_bisansvariables=\_bivariables |
| 36 |
\_let\_bisansgreek=\_bigreek |
| 37 |
% \_resetmathchars <fam-number> <list of \Umathchardef csnames> ; |
| 38 |
\_mathchars \_xits {\bigtriangleup \bigblacktriangleup \blacktriangle |
| 39 |
\vartriangle \smallblacktriangleright} % ... etc. you can add more |
| 40 |
\_fi |
| 41 |
|
| 42 |
\_endcode |
| 43 |
|