| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [XCharter] \XCharter {An extension of Bitstream Charter} |
| 4 |
{\caps \slant} {\rm \bf \it \bi} {XCharter} |
| 5 |
{[XCharter-Roman]} |
| 6 |
{\_def\_fontnamegen {[XCharter-\_currV]:script=latn;\_capsV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\caps ...... caps & small caps^^J |
| 11 |
\slant ..... slanted variants used in \it, \bi^^J |
| 12 |
}} |
| 13 |
|
| 14 |
\_moddef \resetmod {\_fsetV caps={} \_fvars Roman Bold Italic BoldItalic } |
| 15 |
\_moddef \slant {\_fvars Roman Bold Slanted BoldSlanted } |
| 16 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 17 |
|
| 18 |
\_initfontfamily % new font family must be initialized |
| 19 |
|
| 20 |
\loadmath{[XCharter-Math]} |
| 21 |
\loadboldmath{[XCharter-Math-Bold]} \to {[XCharter-Math]} |
| 22 |
|
| 23 |
\_endcode |
| 24 |
|
| 25 |
See the file `f-heros.opm` for information about principles of such |
| 26 |
font-macro-files. |
| 27 |
|