blob: c640138280aa3a44c075f9b07dac71bb33cbb416 (
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
29
30
31
32
33
|
%% This is part of OpTeX project, see http://petr.olsak.net/optex
\_famdecl [Merriweather] \Merriweather {Modern shapes, sharp serifs}
{\caps \sans \serif} {\lf \li \rm \bf \it \bi \kr \ki} {}
{[Merriweather-Regular]}
{\_def\_fontnamegen {[Merriweather\_sansV-\_currV]:\_capsV\_fontfeatures}}
\_wlog{\_detokenize{%
Modifiers:^^J
\sans ...... sans serif^^J
\serif ..... variants with serifs (default)^^J
\caps ...... caps & small caps^^J
\nocaps .... no \caps^^J%
Extended variants:^^J
\lf \li .... Light, LightItalic^^J
\kf \ki .... Black, BlackItalic^^J
}}
\_moddef \resetmod {\_fsetV caps={},sans={} \_fvars Regular Bold Italic BoldItalic }
\_moddef \caps {\_fsetV caps=+smcp;+onum; }
\_moddef \nocaps {\_fsetV caps={} }
\_moddef \sans {\_fsetV sans=Sans }
\_moddef \serif {\_fsetV sans={} }
\_famvardef \lf {\_fsetV curr=Light \_rm}
\_famvardef \li {\_fsetV curr=LightItalic \_rm}
\_famvardef \kf {\_fsetV curr=ExtraBold \_onlyif sans={}: {\_fsetV curr=Black }\_rm}
\_famvardef \ki {\_fsetV curr=ExtraBoldItalic \_onlyif sans={}: {\_fsetV curr=BlackItalic }\_rm}
\_initfontfamily % new font family must be initialized
\_endcode
|