summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/fonts/cs-heros.tex
blob: b1154bd8e473359e54df94dfc3b4e3bb5287d007 (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
% The file cs-heros.tex (C) Petr Olsak, 2012
% Use "\input cs-heros" to set the Termes fonts family in text mode

\message{FONT: Heros -
   \string\rm, \string\it, \string\bf, \string\bi, 
   \string\caps\string\rm..., \string\narrow}

\ifx\sizespec\undefined \def\sizespec{}\fi
\ifx\font\corkencoded \def\tmp{ec}\else \def\tmp{cs}\fi

\ifx\font\unicoded  
   \def\famname{texgyreheroscn} \input unifam
   \let\tenrmn=\tenrm \let\tenbfn=\tenbf \let\tenitn=\tenit \let\tenbin=\tenbi
   \let\tenrmnc=\tenrmc \let\tenbfnc=\tenbfc \let\tenitnc=\tenitc \let\tenbinc=\tenbic
   \def\famname{texgyreheros} \input unifam
\else

\font\tenrm=\tmp-qhvr  \sizespec
\font\tenbf=\tmp-qhvb  \sizespec
\font\tenit=\tmp-qhvri \sizespec
\font\tenbi=\tmp-qhvbi \sizespec

\font\tenrmc=\tmp-qhvr-sc  \sizespec
\font\tenbfc=\tmp-qhvb-sc  \sizespec
\font\tenitc=\tmp-qhvri-sc \sizespec
\font\tenbic=\tmp-qhvbi-sc \sizespec

\fi

\tenrm

\font\tenrmn=\tmp-qhvcr  \sizespec
\font\tenbfn=\tmp-qhvcb  \sizespec
\font\tenitn=\tmp-qhvcri \sizespec
\font\tenbin=\tmp-qhvcbi \sizespec

\font\tenrmnc=\tmp-qhvcr-sc  \sizespec
\font\tenbfnc=\tmp-qhvcb-sc  \sizespec
\font\tenitnc=\tmp-qhvcri-sc \sizespec
\font\tenbinc=\tmp-qhvcbi-sc \sizespec

\def\caps#1{{\escapechar=-1 \expandafter}%
  \expandafter\csname\expandafter\tenonlytext\string#1c\endcsname}
\def\tenonlytext{ten}

\def\narrow{% Switches to Narrow variants
  \let\tenrm=\tenrmn \let\tenbf=\tenbfn
  \let\tenit=\tenitn \let\tenbi=\tenbin 
  \let\tenrmc=\tenrmnc \let\tenbfc=\tenbfnc
  \let\tenitc=\tenitnc \let\tenbic=\tenbinc \tenrm}

\ifx\font\corkencoded \else \input chars-8z \fi

\ifx\mathpreloaded X\else \input tx-math \fi                     

% end of cs-heros.tex