Debian Codegraph @

texmf-dist/tex/optex/base/f-fira.opm

raw
1 %% This is part of the OpTeX project, see http://petr.olsak.net/optex
2
3 \_famdecl [Fira] \Fira {FiraSans and FiraMono with FiraMath}
4 {\sans \mono \caps \allsc \nocaps \thin \light \book \medium}
5 {\rm \bf \it \bi}
6 {FiraMath}
7 {[FiraSans-Regular]}
8 {\_def \_fontnamegen {[Fira\_subV-\_currV]:\_capsV\_fontfeatures}}
9
10 \_wlog{\_detokenize{%
11 Modifiers (subfamilies):^^J
12 \mono ...... Monospaced variants [Mono]^^J
13 Modifiers (face weight):^^J
14 \thin ...... \rm, \it = Thin, \bf, \bi = Regular (Sans)^^J
15 \light ..... \rm, \it = Light, \bf, \bi = Medium (Sans)^^J
16 \book ...... \rm, \it = Book, \bf, \bi = SemiBold (Sans)^^J
17 \medium .... \rm, \it = Medium, \bf, \bi = ExtraBold/Bold (Sans, Mono)^^J
18 Modifiers (small caps):^^J
19 \caps ...... Caps and small caps (Sans)^^J
20 \allsc ..... Small caps only (Sans)^^J
21 \nocaps .... No small caps^^J
22 }}
23
24 \_moddef \resetmod {\_fsetV sub=Sans,caps={} \_fvars Regular Bold Italic BoldItalic }
25 \_moddef \mono {\_fsetV sub=Mono,caps={} \_fvars Regular Bold Oblique BoldOblique }
26 \_moddef \caps {\_fsetV caps=+smcp;\_ffonum; }
27 \_moddef \allsc {\_fsetV caps=+smcp;+c2sc;\_ffonum; }
28 \_moddef \nocaps {\_fsetV caps={} }
29
30 \_moddef \thin {\_onlyif sub=Sans: {\_fvars Thin Regular ThinItalic Italic }}
31 \_moddef \light {\_onlyif sub=Sans: {\_fvars Light Medium LightItalic MediumItalic }}
32 \_moddef \book {\_onlyif sub=Sans: {\_fvars Book SemiBold BookItalic SemiBoldItalic }}
33 \_moddef \medium {\_onlyif sub=Sans: {\_fvars Medium ExtraBold MediumItalic ExtraBoldItalic }%
34 \_onlyif sub=Mono: {\_fvars Medium Bold MediumOblique BoldOblique }}
35
36 \_initfontfamily % new font family must be initialized
37
38 \_ifmathloading
39 \_loadmath {[FiraMath-Regular]}
40 \_addUmathfont \_xits {[XITSMath-Regular]}{} {[XITSMath-Bold]}{} {}
41 \_addto\_frak{\_fam\_xits}\_addto\_cal{\_fam\_xits} \_public \frak \cal ;
42 % \bf, \bi from FiraMath:
43 \_let\_bsansvariables=\_bfvariables
44 \_let\_bsansGreek=\_bfGreek
45 \_let\_bsansgreek=\_bfgreek
46 \_let\_bsansdigits=\_bfdigits
47 \_let\_bisansvariables=\_bivariables
48 \_let\_bisansgreek=\_bigreek
49 % \_resetmathchars <fam-number> <list of \Umathchardef csnames> ;
50 \_mathchars \_xits {\bigtriangleup \bigblacktriangleup \blacktriangle
51 \vartriangle \smallblacktriangleright
52 \unicodevdots \unicodeadots \unicodeddots} % ... etc. you can add more
53 \_fi
54
55 \_endcode