| 1 |
%% This is part of the OpTeX project, see http://petr.olsak.net/optex |
| 2 |
|
| 3 |
\_famdecl [Poltawski] \Poltawski {Antykwa Poltawskiego, Polish traditional font family} |
| 4 |
{\light \noexpd \expd \eexpd \cond \ccond \osize \caps} {\rm \bf \it \bi} {} |
| 5 |
{[antpolt-regular]} |
| 6 |
{\_def\_fontnamegen {[antpolt\_liV\_condV-\_currV]\_capsV\_fontfeatures}} |
| 7 |
|
| 8 |
\_wlog{\_detokenize{% |
| 9 |
Modifiers:^^J |
| 10 |
\light ..... light weight, \bf,\bi=semibold^^J |
| 11 |
\noexpd .... no expanded, no condensed, designed for 10pt size (default)^^J |
| 12 |
\eexpd ..... expanded, designed for 6pt size^^J |
| 13 |
\expd ...... semi expanded, designed for 8pt size^^J |
| 14 |
\cond ...... semi condensed, designed for 12pt size^^J |
| 15 |
\ccond ..... condensed, designed for 17pt size^^J |
| 16 |
\osize ..... auto-switches between \ccond \cond \noexpd \expd \eexpd by size^^J |
| 17 |
\caps ...... caps & small caps^^J |
| 18 |
}} |
| 19 |
|
| 20 |
\_moddef \resetmod {\_fsetV li={},cond={},caps={} \_fvars regular bold italic bolditalic } |
| 21 |
\_moddef \light {\_fsetV li=lt } |
| 22 |
\_moddef \noexpd {\_fsetV cond={} } |
| 23 |
\_moddef \eexpd {\_fsetV cond=expd } |
| 24 |
\_moddef \expd {\_fsetV cond=semiexpd } |
| 25 |
\_moddef \cond {\_fsetV cond=semicond } |
| 26 |
\_moddef \ccond {\_fsetV cond=cond } |
| 27 |
\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } |
| 28 |
\_moddef \nocaps {\_fsetV caps={} } |
| 29 |
\_moddef \osize {\_def\_fontnamegen{[antpolt\_liV\_optname{x}-\_currV]:\_capsV\_fontfeatures}% |
| 30 |
\_regoptsizes x ? expd <7 semiexpd <9 {} <11.1 semicond <15 cond <*} |
| 31 |
|
| 32 |
\_initfontfamily % new font family must be initialized |
| 33 |
|
| 34 |
\_endcode |