summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/optex/base/f-stixtwo.opm
blob: 629b57a7416d65aef929af5133a99aae8c0f6f9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%% This is part of the OpTeX project, see http://petr.olsak.net/optex

\_famdecl [STIXTwo] \StixTwo {Second version of STIX}
        {\caps} {\rm \bf \it \bi} {STIXTwoMath}
        {[STIXTwoText-Regular]}
        {\_def\_fontnamegen {[STIXTwoText-\_currV]:\_capsV\_fontfeatures}}

\_wlog{\_detokenize{%
Modifiers:^^J
 \caps ...... caps & small caps,^^J
 \medium .... \rm,\it medium,^^J
 \bolder .... \rm,\it semibold (between medium and \bf)^^J
}}

\_moddef \resetmod {\_fsetV caps={} \_fvars Regular Bold Italic BoldItalic }
\_moddef \medium   {\_fvars Medium Bold MediumItalic BoldItalic }
\_moddef \bolder   {\_fvars SemiBold Bold SemiBoldItalic BoldItalic }
\_moddef \caps     {\_fsetV caps=+smcp;\_ffonum; }

\_initfontfamily % new font family must be initialized

\_loadmath {[STIXTwoMath-Regular]}

\_endcode

See the file `f-heros.opm` for information about principles of such
font-macro-files.