Debian Codegraph @

texmf-dist/doc/fonts/fontinst/test/v1906test.mtx

raw
1 \relax
2 % v1906test.mtx
3 %
4 % A test of the nokerning commands and the \glyphbboxright IE.
5
6
7 \metrics
8
9 \for(i){0}{20}{1}
10 \setglyph{c\strint{i}}
11 \glyphrule{20}{\mul{\add{\int{i}}{1}}{20}}
12 \movert{\mul{20}{\int{i}}}
13 \endsetglyph
14 \endfor(i)
15
16
17 \setglyph{d}
18 \for(i){5}{10}{1}
19 \glyphpcc{c\strint{i}}{\int{i}}{\int{i}}
20 \endfor(i)
21 \resetint{j}{\glyphbboxright}
22 \immediate\write16{\string\glyphbboxright=\strint{j}}
23 \glyph{c20}{1000}
24 \resetint{j}{\glyphbboxright}
25 \immediate\write16{\string\glyphbboxright=\strint{j}}
26 \endsetglyph
27
28
29 \for(i){0}{20}{1}
30 \for(j){0}{20}{1}
31 \setkern{c\strint{i}}{c\strint{j}}{\mul{\int{i}}{\int{j}}}
32 \endfor(j)
33 \endfor(i)
34
35 \noleftkerning{c1,c3,c5,c7,c9,c11,c13,c15,c17,c19}
36 \immediate\write16{\expandafter\meaning\csname a_macro\endcsname}
37 \norightkerning{c1,c3,c5,c7,c9}
38
39 % \resetint{i}{0}
40 % \loop
41 % \setkern{c\strint{i}}{c\strint{i}}{-50}
42 % \resetint{j}{\sub{20}{\int{i}}}
43 % \resetkern{c\strint{i}}{c\strint{j}}{-100}
44 % \ifnum 20>\int{i}
45 % \resetint{i}{\add{\int{i}}{1}}
46 % \repeat
47
48
49 % \resetint{i}{0}
50 % \loop
51 % \ifiskern{c3}{c\strint{i}}\then
52 % \resetint{T}{\kerning{c3}{c\strint{i}}}
53 % \message{c3:c\strint{i} has kern \strint{T} units^^J}
54 % \else
55 % \message{c3:c\strint{i} no kern^^J}
56 % \fi
57 % \ifnum 20>\int{i}
58 % \resetint{i}{\add{\int{i}}{1}}
59 % \repeat
60
61
62
63 \endmetrics
64