| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [DejaVu] \Dejavu {Derived from the Vera fonts} |
| 4 |
{\sans \mono \cond \light \caps} {\rm \bf \it \bi} {TG-DejavuMath} |
| 5 |
{[DejaVuSerif]} |
| 6 |
{\_def\_fontnamegen {[DejaVu\_subfamV\_typfamV\_currV]:\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\sans ...... sans serif^^J |
| 11 |
\serif ..... serif (default)^^J |
| 12 |
\mono ...... non-proportional, only \sans^^J |
| 13 |
\light ..... extra-light, only \sans, only \rm, others (\bf\it\bi) unchanged^^J |
| 14 |
\cond ...... condensed (\sans or \serif, not \mono) |
| 15 |
}} |
| 16 |
|
| 17 |
\_def\_BIfvars{\_fvars {} -Bold -Italic -BoldItalic } |
| 18 |
\_def\_BOfvars{\_fvars {} -Bold -Oblique -BoldOblique } |
| 19 |
\_moddef \resetmod {\_fsetV subfam=Serif,typfam={} \_BIfvars } |
| 20 |
\_moddef \sans {\_fsetV subfam=Sans \_BOfvars } |
| 21 |
\_moddef \serif {\_fsetV subfam=Serif,typfam={} \_BOfvars } |
| 22 |
\_moddef \mono {\_fsetV subfam=Sans,typfam=Mono \_BOfvars } |
| 23 |
\_moddef \light {\_fsetV subfam=Sans,typfam={} \_fvars -ExtraLight -Bold -Oblique -BoldOblique } |
| 24 |
\_moddef \cond {\_fsetV typfam=Condensed } |
| 25 |
|
| 26 |
\_initfontfamily % new font family must be initialized |
| 27 |
|
| 28 |
\_loadmath {[texgyredejavu-math]} |
| 29 |
|
| 30 |
\_endcode |
| 31 |
|