summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/fonts/cs-iwona.tex
blob: 0b4b21f370a3a64266095f5cea865b34d809ca4c (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
% The file cs-iwona.tex (C) Petr Olsak, 2016
% Use "\input cs-iwona" to set the Iwona font family in text mode

\ifx\ffdecl\undefined \input ff-mac \fi

\ffdecl [Iwona] {\caps \cond \lightw \heavyw} {\rm \bf \it \bi} {} {KI} {8z 8t U}

\ffvars {r}{b}{ri}{bi} 
\def\caps{\ffsetV{caps}{-sc}\ffsetX}  \def\nocaps{\ffsetV{caps}{}\ffsetX}
\def\cond{\ffsetV{cond}{c}\ffsetX}    \def\nocond{\ffsetV{cond}{}\ffsetX}
\def\capsV{} 
\def\condV{} 
\def\lightw{\ffvars{l}{m}{li}{mi}\ffsetX}
\def\heavyw{\ffvars{h}{!}{hi}{!}\ffsetX}
\def\normalw{\ffvars {r}{b}{ri}{bi}\ffsetX}

\ismacro\fotenc{8t}\ifttrue

   \font\tenrm = ec-iwonar  \sizespec
   \font\tenbf = ec-iwonab  \sizespec
   \font\tenit = ec-iwonari \sizespec
   \font\tenbi = ec-iwonabi \sizespec

   \def\ffnamegen{ec-iwona\condV\ffvarV\capsV}

\fi

\ismacro\fotenc{8z}\iftrue

   \font\tenrm = cs-iwonar  \sizespec
   \font\tenbf = cs-iwonab  \sizespec
   \font\tenit = cs-iwonari \sizespec
   \font\tenbi = cs-iwonabi \sizespec

   \def\ffnamegen{cs-iwona\condV\ffvarV\capsV}
   \input chars-8z

\fi

\ismacro\fotenc{U}\iftrue

   \font\tenrm = "[Iwona-Regular]:\fontfeatures"    \sizespec
   \font\tenbf = "[Iwona-Bold]:\fontfeatures"       \sizespec
   \font\tenit = "[Iwona-Italic]:\fontfeatures"     \sizespec
   \font\tenbi = "[Iwona-BoldItalic]:\fontfeatures" \sizespec

   \def\ffnamegen{"[Iwona\condV\ffvarxV-\ffvarV]:\capsV\fontfeatures"} 

   \ffvars {Regular} {Bold} {Italic} {BoldItalic}
   \def\caps{\ffsetV{caps}{+smcp;}\ffsetX}
   \def\cond{\ffsetV{cond}{Cond}\ffsetX}
   \def\lightw{\ffvarsx{Light}{Medium}{Light}{Medium}%
      \ffvars{Regular}{Regular}{Italic}{Italic}\ffsetX}
   \def\heavyw{\ffvarsx{Heavy}{}{Heavy}{}\ffvars{Regular}{!}{Italic}{!}\ffsetX}
   \def\normalw{\ffvarsx{}{}{}{}\ffvars{Regular}{Bold}{Italic}{BoldItalic}\ffsetX}

   \tryprotected\def\ffvarsx#1#2#3#4{%
      \def\ffvarxY##1{\ifcase##1 #1\or#2\or#3\or#4\fi}%
   }
   \def\ffsetR#1{\edef\ffvarxV{\ffvarxY{#1}}}
   \ffvarsx {}{}{}{}

\fi
\tenrm % don't remember to initialize the family with normal font.

\def\narrow{\cond\fam}

\ifx\loadmathfonts\relax \endinput \fi
\def\mfamname{iwona}
\ifx\mathpreloaded R \normalmath \else \input ki-math \fi