diff options
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/fontfam.tex')
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/fontfam.tex | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/fontfam.tex b/Master/texmf-dist/tex/csplain/opmac/fontfam.tex index 5b532cd9e6b..cbb193baa10 100644 --- a/Master/texmf-dist/tex/csplain/opmac/fontfam.tex +++ b/Master/texmf-dist/tex/csplain/opmac/fontfam.tex @@ -45,11 +45,9 @@ \def\fontfamexecB#1#2#3#4#5#6#7{\testfotenc{#6}% \iftrue {\toks2={#2}\toks3={#3}\toks4={#4}% - \immediate\write16{ [#1] \space - {\the\toks2 - \ifx\relax#3\relax \else ; mod:\the\toks3 \fi - \ifx\relax#4\relax \else ; \the\toks4 \fi - \ifx\relax#5\relax \else ; +#5\fi} (#6)}}% + \immediate\write16{ [#1] \space {\the\toks2} {\the\toks3}% + \ifx\relax#4\relax \else \space\the\toks4 \fi + \ifx\relax#5\relax \else \space +#5\fi \space(#6)}}% \else \immediate\write16{ -- [#1] (#6) -- unavailable in \fotenc\space enc.}% \fi @@ -93,12 +91,18 @@ If a required [Font Family Name] is not known, then all available Font Family Names are printed on terminal and into log file. Typical usage: \fontfam [?]. If a required [Font Family Name] is known then appropriate \input fontfile -is done. Nothing more. This means that \fontfam gives you possibility to +is done. Nothing more. This means that \fontfam gives you only possibility to keep a good overview about fontfiles. You can use special parameter \fontfam [Catalog]. Then all available font families are printed to the document with font samples. The pre-defined font -sample can be rewritten: \def\fontfamsample{...}. +sample can be rewritten by \def\fontfamsample{...}. + +If you want to print only selected families in the catalog, give these +families in comma separated list in the macro \catalogfams before +\fontfam[Catalog] is executed. Example: + +\def\catalogfams{Times Roman, Helvetica, KP fonts} \fontfam[Catalog] Each fontfile supports a limited set of encodings of the fonts. This is listed in round brackets: 8t means T1 encoding, 8z means IL2 encoding and @@ -114,9 +118,12 @@ which provides the encoding currently chosen. The fontfam-global.tex or fontfam-local.tex files uses \setfontfam with following format: -\setfontfam [Name] {variants} {modifiers} {comment} {math} (encodings) {\input fontfile} +\setfontfam [Name] {modifiers} {variants} {comment} {math} (encodings) {\input fontfile} + +Note, that \setfontfam changed its syntax in Jun. 2016. New version use +first {modifiers} then {variants}. -And \famalias can be used: +The \famalias macro can be used: \famalias{aliasname}{origname} |