| 1 |
% Test of fontinst v1.901. |
| 2 |
% Started 1999/03/13. |
| 3 |
\input fontinst.sty |
| 4 |
|
| 5 |
% Part one---test of pooled file allocation. |
| 6 |
\catcode`\_=11 |
| 7 |
\catcode`\@=11 |
| 8 |
|
| 9 |
\def\show_out_filenames{% |
| 10 |
\immediate\write16{\string\count17=\the\count17}% |
| 11 |
\for(i){-1}{16}{1}% |
| 12 |
\immediate\write16{Stream \strint{i}: |
| 13 |
\x_cs\meaning{out_filename-\strint{i}}% |
| 14 |
}% |
| 15 |
\endfor(i)% |
| 16 |
} |
| 17 |
|
| 18 |
% %1 Standard usage |
| 19 |
% \show_out_filenames |
| 20 |
% \open_pout\tF{\jobname.out} |
| 21 |
% \show_out_filenames |
| 22 |
% \pout_line\tF{Hello world!} |
| 23 |
% \close_pout\tF{Test output} |
| 24 |
% \show_out_filenames |
| 25 |
% % Seems to work fine. |
| 26 |
|
| 27 |
% %2 Allocating LOTS of files. |
| 28 |
% \newcount\j_count |
| 29 |
% \newcount\k_count |
| 30 |
% \j_count=0 |
| 31 |
% \k_count=1 |
| 32 |
% \for(o){1}{48}{1} |
| 33 |
% \x_cs\open_pout{F-\strint{o}}{\jobname.\strint{o}}% |
| 34 |
% \ifodd \int{o} \else |
| 35 |
% \x_cs\pout_line{F-\the\k_count}{% |
| 36 |
% open=\strint{o} close=\the\j_count\space write=\the\k_count |
| 37 |
% }% |
| 38 |
% \multiply \k_count \thr@@ |
| 39 |
% \advance \k_count \@ne |
| 40 |
% \d_count=\k_count |
| 41 |
% \divide \d_count \int{o}% |
| 42 |
% \multiply \d_count \int{o}% |
| 43 |
% \advance \k_count -\d_count |
| 44 |
% \advance \k_count \@ne |
| 45 |
% \advance \j_count \@ne |
| 46 |
% \x_cs\close_pout{F-\the\j_count}{Test data}% |
| 47 |
% \fi |
| 48 |
% \d_count=\int{o}% |
| 49 |
% \divide \d_count 8% |
| 50 |
% \multiply \d_count 8% |
| 51 |
% \advance \d_count -\int{o}% |
| 52 |
% \ifnum 0=\d_count \show_out_filenames \fi |
| 53 |
% \endfor(o) |
| 54 |
% % Seems to work fine as well. |
| 55 |
|
| 56 |
|
| 57 |
%% Part two---test of reimplemented \transformfont stuff |
| 58 |
%% Part two B---test of \recordtransforms stuff |
| 59 |
|
| 60 |
\recordtransforms{mapfrags.tex} |
| 61 |
\transformfont{v1901test1}{ |
| 62 |
\xscalefont{2000}{\reencodefont{t1c}{\frommtx{v1901test}}} |
| 63 |
} |
| 64 |
\transformfont{v1901test2}{ |
| 65 |
\yscalefont{500}{\xscalefont{2000}{\frommtx{v1901test}}} |
| 66 |
} |
| 67 |
\transformfont{v1901test3}{ |
| 68 |
\reencodefont{t1}{\slantfont{100}{\frommtx{v1901test}}} |
| 69 |
} |
| 70 |
\endrecordtransforms |
| 71 |
|
| 72 |
|
| 73 |
\bye |
| 74 |
|
| 75 |
%% Part three---test of reglyphing |
| 76 |
|
| 77 |
\reglyphfonts |
| 78 |
\resetcommand\iftokeep#1\then{\ifnum 0<#1} |
| 79 |
% This means that an AFM command will survive the conversion only if |
| 80 |
% it refers to at least one renamed glyph and not refer to any killed |
| 81 |
% glyph. |
| 82 |
|
| 83 |
% \offmtxcommand\setrawglyph |
| 84 |
% \offmtxcommand\setglyph |
| 85 |
% % This reglyphing file is inteded for extracting information from the |
| 86 |
% % AFM file of a Caps, Small caps, and Oldstyle figures fonts--with the |
| 87 |
% % intention to build a corresponding virtual font with glyphs that are |
| 88 |
% % present in the Regular and Expert Regular variants instead. Hence |
| 89 |
% % there is no need for \setrawglyph or \setglyph commands (the |
| 90 |
% % dimensions of the characters are known from the Reg. and Exp.Reg. |
| 91 |
% % AFM's), but the \setkern commands are most interesting (since 8x |
| 92 |
% % fonts don't contain any upper case letters, and hence has no kerning |
| 93 |
% % pairs between these and the small caps either). |
| 94 |
|
| 95 |
|
| 96 |
\renameglyph{dollaroldstyle}{dollar} |
| 97 |
\renameglyph{ampersandsmall}{ampersand} |
| 98 |
|
| 99 |
\renameglyph{zerooldstyle}{zero} |
| 100 |
\renameglyph{oneoldstyle}{one} |
| 101 |
\renameglyph{twooldstyle}{two} |
| 102 |
\renameglyph{threeoldstyle}{three} |
| 103 |
\renameglyph{fouroldstyle}{four} |
| 104 |
\renameglyph{fiveoldstyle}{five} |
| 105 |
\renameglyph{sixoldstyle}{six} |
| 106 |
\renameglyph{sevenoldstyle}{seven} |
| 107 |
\renameglyph{eigtholdstyle}{eight} |
| 108 |
\renameglyph{nineoldstyle}{nine} |
| 109 |
|
| 110 |
\renameglyph{Asmall}{a} |
| 111 |
\renameglyph{Bsmall}{b} |
| 112 |
\renameglyph{Csmall}{c} |
| 113 |
\renameglyph{Dsmall}{d} |
| 114 |
\renameglyph{Esmall}{e} |
| 115 |
\renameglyph{Fsmall}{f} |
| 116 |
\renameglyph{Gsmall}{g} |
| 117 |
\renameglyph{Hsmall}{h} |
| 118 |
\renameglyph{Ismall}{i} |
| 119 |
\renameglyph{Jsmall}{j} |
| 120 |
\renameglyph{Ksmall}{k} |
| 121 |
\renameglyph{Lsmall}{l} |
| 122 |
\renameglyph{Msmall}{m} |
| 123 |
\renameglyph{Nsmall}{n} |
| 124 |
\renameglyph{Osmall}{o} |
| 125 |
\renameglyph{Psmall}{p} |
| 126 |
\renameglyph{Qsmall}{q} |
| 127 |
\renameglyph{Rsmall}{r} |
| 128 |
\renameglyph{Ssmall}{s} |
| 129 |
\renameglyph{Tsmall}{t} |
| 130 |
\renameglyph{Usmall}{u} |
| 131 |
\renameglyph{Vsmall}{v} |
| 132 |
\renameglyph{Wsmall}{w} |
| 133 |
\renameglyph{Xsmall}{x} |
| 134 |
\renameglyph{Ysmall}{y} |
| 135 |
\renameglyph{Zsmall}{z} |
| 136 |
|
| 137 |
\renameglyph{centoldstyle}{cent} |
| 138 |
|
| 139 |
% \renameglyph{FIsmall}{fi} |
| 140 |
% \renameglyph{FLsmall}{fl} |
| 141 |
% These two aren't really necessary, since the ligature `fi' looks |
| 142 |
% exactly as the letters `f'`i' next to each others. |
| 143 |
\killglyph{fi} |
| 144 |
\killglyph{fl} |
| 145 |
|
| 146 |
\renameglyph{Gravesmall}{grave} |
| 147 |
\renameglyph{Acutesmall}{acute} |
| 148 |
\renameglyph{Circumflexsmall}{circumflex} |
| 149 |
\renameglyph{Tildesmall}{tilde} |
| 150 |
\renameglyph{Macronsmall}{macron} |
| 151 |
\renameglyph{Brevesmall}{breve} |
| 152 |
\renameglyph{Dotaccentsmall}{dotaccent} |
| 153 |
\renameglyph{Dieresissmall}{dieresis} |
| 154 |
\renameglyph{Ringsmall}{ring} |
| 155 |
\renameglyph{Cedillasmall}{cedilla} |
| 156 |
\renameglyph{Ogoneksmall}{ogonek} |
| 157 |
\renameglyph{Caronsmall}{caron} |
| 158 |
|
| 159 |
\renameglyph{AEsmall}{ae} |
| 160 |
\renameglyph{dotlessIsmall}{dotlessi} |
| 161 |
\renameglyph{Lslashsmall}{lslash} |
| 162 |
\renameglyph{Oslashsmall}{oslash} |
| 163 |
\renameglyph{OEsmall}{oe} |
| 164 |
% \renameglyph{SSsmall}{germandbls} |
| 165 |
% This isn't really needed in the AGaramond font family, since `SSsmall' |
| 166 |
% looks exactly like `Ssmall'`Ssmall' |
| 167 |
\killglyph{germandbls} |
| 168 |
|
| 169 |
\renameglyph{Oacutesmall}{oacute} |
| 170 |
\renameglyph{Odieresissmall}{odieresis} |
| 171 |
\renameglyph{Ucircumflexsmall}{ucircumflex} |
| 172 |
|
| 173 |
\renameglyph{Uacutesmall}{uacute} |
| 174 |
\renameglyph{Eacutesmall}{eacute} |
| 175 |
\renameglyph{Iacutesmall}{iacute} |
| 176 |
\renameglyph{Icircumflexsmall}{icircumflex} |
| 177 |
|
| 178 |
\renameglyph{Thornsmall}{thorn} |
| 179 |
\renameglyph{Yacutesmall}{yacute} |
| 180 |
|
| 181 |
\renameglyph{Ocircumflexsmall}{ocircumflex} |
| 182 |
\renameglyph{Otildesmall}{otilde} |
| 183 |
\renameglyph{Ntildesmall}{ntilde} |
| 184 |
\renameglyph{Ydieresissmall}{ydieresis} |
| 185 |
\renameglyph{Ethsmall}{eth} |
| 186 |
\renameglyph{Acircumflexsmall}{acircumflex} |
| 187 |
\renameglyph{Aringsmall}{aring} |
| 188 |
\renameglyph{Ccedillasmall}{ccedilla} |
| 189 |
|
| 190 |
\renameglyph{Ugravesmall}{ugrave} |
| 191 |
\renameglyph{Zcaronsmall}{zcaron} |
| 192 |
\renameglyph{Idieresissmall}{idieresis} |
| 193 |
\renameglyph{Agravesmall}{agrave} |
| 194 |
|
| 195 |
\renameglyph{Ogravesmall}{ograve} |
| 196 |
|
| 197 |
\renameglyph{Udieresissmall}{udieresis} |
| 198 |
\renameglyph{Edieresissmall}{edieresis} |
| 199 |
\renameglyph{Aacutesmall}{aacute} |
| 200 |
\renameglyph{Igravesmall}{igrave} |
| 201 |
\renameglyph{Idieresissmall}{idieresis} |
| 202 |
\renameglyph{Adieresissmall}{adieresis} |
| 203 |
|
| 204 |
\renameglyph{Scaronsmall}{scaron} |
| 205 |
\renameglyph{Egravesmall}{egrave} |
| 206 |
\renameglyph{Atildesmall}{atilde} |
| 207 |
\renameglyph{Ecircumflexsmall}{ecircumflex} |
| 208 |
|
| 209 |
\reglyphfont{K-padrc}{gdsc} |
| 210 |
\reglyphfont{K-padsc}{padsc8a} |
| 211 |
\endreglyphfonts |
| 212 |
|
| 213 |
|
| 214 |
\bye |