Debian Codegraph @

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

raw
1 %% This is part of the OpTeX project, see http://petr.olsak.net/optex
2
3 \_famdecl [Roboto] \Roboto {Geometric grotesk, thin variants included}
4 {\cond \mono \ttset \thin \light \normal \bolder \caps}
5 {\tf \ti \lf \li \rm \it \mf \mi \bf \bi \kf \ki} {}
6 {[Roboto-Regular]}
7 {\_def\_fontnamegen {[Roboto\_subV-\_currV]:\_capsV\_fontfeatures}}
8
9 \_wlog{\_detokenize{%
10 Modifiers (subfamilies):^^J
11 \cond ...... Condensed variants (no Thin, Medium, Black)^^J
12 \mono ...... Monospaced variants [Mono] (no Black)^^J
13 \ttset ..... Typewriter-like variants [Slab] (no Italic, no Medium, Black)^^J%
14 Modifiers (face weight):^^J
15 \thin ...... \rm, \it = Thin, \bf, \bi = Normal^^J
16 \light ..... \rm, \it = Light, \bf, \bi = Medium^^J
17 \normal .... \rm, \it = Normal, \bf, \bi = Bold^^J
18 \bolder .... \rm, \it = Medium, \bf, \bi = Black^^J%
19 Modifiers (Caps):^^J
20 \caps ...... Caps & small Caps^^J
21 \nocaps .... no \caps^^J%
22 Extended variants:^^J
23 \tf \ti .... Thin, ThinItalic^^J
24 \lf \li .... Light, LightItalic^^J
25 \mf \mi .... Medium, MediumItalic^^J
26 \kf \ki .... Black, BlackItalic^^J
27 }}
28
29 \_moddef \resetmod {\_fsetV caps={},sub={},w=n \_fvars Regular Bold Italic BoldItalic }
30 \_moddef \mono {\_fsetV sub=Mono \_onlyif w=b: {\normal}}
31 \_moddef \cond {\_fsetV sub=Condensed \_onlyif w=b: {\normal}\_onlyif w=t: {\light}}
32 \_moddef \ttset {\_fsetV sub=Slab \_fvars Regular Bold . . }
33
34 \_moddef \thin {\_onlyif sub={},Mono: {\_fsetV w=t \_fvars Thin Regular ThinItalic Italic }%
35 \_onlyif sub=Slab: {\_fsetV w=t \_fvars Thin Regular . . }}
36 \_moddef \light {\_onlyif sub={},Mono: {\_fsetV w=l \_fvars Light Medium LightItalic MediumItalic }%
37 \_onlyif sub=Condensed: {\_fsetV w=l \_fvars Light Regular LightItalic Italic }%
38 \_onlyif sub=Slab: {\_fsetV w=l \_fvars Light Bold . . }}
39 \_moddef \normal {\_fsetV w=n \_fvars Regular Bold Italic BoldItalic
40 \_onlyif sub=Slab: {\_fvars Regular Bold . . }}
41 \_moddef \bolder {\_onlyif sub={}: {\_fsetV w=b \_fvars Medium Black MediumItalic BlackItalic }}
42
43 \_moddef \caps {\_fsetV caps=+smcp;\_ffonum; }
44 \_moddef \nocaps {\_fsetV caps={} }
45
46 \_famvardef \tf {\_thinM \_rm}
47 \_famvardef \ti {\_thinM \_it}
48 \_famvardef \lf {\_lightM \_rm}
49 \_famvardef \li {\_lightM \_it}
50 \_famvardef \mf {\_bolderM \_rm}
51 \_famvardef \mi {\_bolderM \_it}
52 \_famvardef \kf {\_bolderM \_bf}
53 \_famvardef \ki {\_bolderM \_bi}
54 \_let\_thinM=\thin \_let\_lightM=\light \_let\_bolderM=\bolder
55
56 \_initfontfamily % new font family must be initialized
57
58 \_endcode
59