summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/f-xcharter.opm
blob: d889c8ba2b1d53d9cd8be993764a4cf890061845 (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 OpTeX project, see http://petr.olsak.net/optex

\_fontdecl [XCharter] \XCharter {An extension of Bitstream Charter}
        {\caps \slant} {\rm \bf \it \bi} {}
        {[XCharter-Roman]}

\_wlog{\_detokenize{%
Modifiers:^^J
 \caps ...... caps & small caps^^J
 \slant ..... slanted variants used in \it, \bi^^J
}}

\_protected\def \XCharter {%
   \_def \_currfamily {XCharter}%
   \_def \_fontnamegen {[XCharter-\_currV]:\_capsV\_fontfeatures}% 
   \_resetmod
}
\_moddef \resetmod {\_fsetV caps={} \_fvars Roman Bold Italic BoldItalic }
\_moddef \slant    {\_fvars Roman Bold Slanted BoldSlanted }
\_moddef \caps     {\_fsetV caps=+smcp;+onum; }

\_initfontfamily % new font family must be initialized

\_endcode

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