Debian Codegraph @

texmf-dist/tex/fontinst/afm2pl/ly1c.etx

raw
1 \relax
2
3 % LYc.etx -- install an LY1-encoded faked small-caps font
4 %
5 % This is used exclusively to install faked small-caps fonts;
6 % real small caps fonts are installed using the default LY1.etx.
7 %
8 % This file is mostly a copy of t1c.etx
9
10 \encoding
11
12 % We define the parameters for LY1.etx to produce a c&sc font.
13
14 \setcommand\lc#1#2{#1small}
15 \setcommand\uc#1#2{#1}
16 \setcommand\lctop#1#2{#1small}
17 \setcommand\uctop#1#2{#1}
18 \setcommand\lclig#1#2{#1small}
19 \setcommand\uclig#1#2{#1spaced}
20 \setcommand\digit#1{#1}
21
22 % The default letter spacing is 1/10 of the design size, with small
23 % caps 80% the size of large caps.
24
25 \setint{smallcapsscale}{800}
26
27 \ifisglyph{space}\then
28 \setint{interword}{\width{space}}
29 \else\ifisglyph{i}\then
30 \setint{interword}{\width{i}}
31 \else
32 \setint{interword}{333}
33 \fi\fi
34
35 \ifisint{monowidth}\then
36 \setint{smallcapsextraspace}
37 {\div{\scale{\int{interword}}{\sub{1000}{\int{smallcapsscale}}}}{2}}
38 \setint{smallcapsspacing}{0}
39 \else
40 \setint{smallcapsextraspace}{50}
41 \setint{smallcapsspacing}{50}
42 \fi
43
44 \ifisint{capspacing}\then
45 \setint{letterspacing}{\int{capspacing}}
46 \fi
47
48 % Then we call LY1.etx.
49
50 \inputetx{LY1}
51
52 \endencoding