| 1 |
% basicex.tex |
| 2 |
% |
| 3 |
% This file contains some basic examples of commands for |
| 4 |
% installing the AGaramond family of fonts with fontinst v1.9. |
| 5 |
% It is pretty similar to what the \latinfamily command |
| 6 |
% does for these fonts, but the details are not identical. |
| 7 |
% |
| 8 |
% In case you want to run this file yourself, the metrics for |
| 9 |
% the AGaramond font family can be downloaded from |
| 10 |
% |
| 11 |
% ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/051-100/100/ |
| 12 |
% and |
| 13 |
% ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/101-150/101/ |
| 14 |
% |
| 15 |
% The AFM files found in these directories should then be renamed |
| 16 |
% as indicated in the Fontname adobe.map file. Also note that |
| 17 |
% the line endings are Windows-style (CRLF), so you probably need |
| 18 |
% to download as binary and do some conversion before you can use |
| 19 |
% these files comfortably. |
| 20 |
|
| 21 |
\input fontinst.sty |
| 22 |
|
| 23 |
% This tells fontinst to collect information about font |
| 24 |
% transformations in the file basicex.recs. That file is |
| 25 |
% then used by basicex2.tex. |
| 26 |
\recordtransforms{basicex.recs} |
| 27 |
|
| 28 |
% These commands perform transformations on the metrics of |
| 29 |
% some of the fonts, thereby creating new metrics files for |
| 30 |
% the transformed fonts. |
| 31 |
\transformfont{padr8r}{\reencodefont{8r}{\fromafm{padr8a}}} |
| 32 |
\transformfont{padrc8r}{\reencodefont{8r}{\fromafm{padrc8a}}} |
| 33 |
\transformfont{padri8r}{\reencodefont{8r}{\fromafm{padri8a}}} |
| 34 |
\transformfont{padro8r}{\slantfont{250}{\frommtx{padr8r}}} |
| 35 |
\transformfont{padro8x}{\slantfont{250}{\fromafm{padr8x}}} |
| 36 |
|
| 37 |
% The first three lines of each group reencode fonts |
| 38 |
% so that TeX can access all glyphs in them. |
| 39 |
\transformfont{pads8r}{\reencodefont{8r}{\fromafm{pads8a}}} |
| 40 |
\transformfont{padsc8r}{\reencodefont{8r}{\fromafm{padsc8a}}} |
| 41 |
\transformfont{padsi8r}{\reencodefont{8r}{\fromafm{padsi8a}}} |
| 42 |
% The last two lines artifically create slanted variants |
| 43 |
% of fonts by skewing them. 250 is the natural slant of |
| 44 |
% the italics in this family. |
| 45 |
\transformfont{padso8r}{\slantfont{250}{\frommtx{pads8r}}} |
| 46 |
\transformfont{padso8x}{\slantfont{250}{\fromafm{pads8x}}} |
| 47 |
|
| 48 |
\transformfont{padb8r}{\reencodefont{8r}{\fromafm{padb8a}}} |
| 49 |
% There is no padbc8a, hence nothing to make a padbc8r from. |
| 50 |
\transformfont{padbi8r}{\reencodefont{8r}{\fromafm{padbi8a}}} |
| 51 |
\transformfont{padbo8r}{\slantfont{250}{\frommtx{padb8r}}} |
| 52 |
\transformfont{padbo8x}{\slantfont{250}{\fromafm{padb8x}}} |
| 53 |
% The DVI driver must be told to make the same transformations |
| 54 |
% to the actual fonts when a document using them is to be viewed |
| 55 |
% or printed. The information collected in basicex.recs can |
| 56 |
% help with this. The job of basicex2.tex is to translate this |
| 57 |
% information to a format understood by DVI drivers. |
| 58 |
|
| 59 |
|
| 60 |
% The \transformfont commands above generate metric files in MTX |
| 61 |
% format (for use by the \installfont commands below) and PL |
| 62 |
% format (for transformation to TFMs that are needed by the DVI |
| 63 |
% driver when interpreting VFs based on these fonts). These PL |
| 64 |
% files are minimal and not suitable for direct use in typesetting |
| 65 |
% since there is no kerning information, ligaturing instructions, |
| 66 |
% or fontdimens, but they are perfectly adequate to serve as |
| 67 |
% base fonts for VFs. |
| 68 |
% |
| 69 |
% The next bunch of commands generate a new set of PL files for |
| 70 |
% these fonts (overwriting the previous), and these new files |
| 71 |
% do contain kerning information, ligaturing instructions, and |
| 72 |
% fontdimens. (As a side-effect, these files are also larger than |
| 73 |
% the previous ones.) Since 8r-encoded fonts are not in practice |
| 74 |
% used for typesetting (not much, anyway), it is perfectly |
| 75 |
% possible to skip this step. |
| 76 |
\installfonts |
| 77 |
\installrawfont {padr8r}{padr8r,8r}{8r} {8r}{pad}{m}{n}{} |
| 78 |
\installrawfont {padrc8r}{padrc8r,8r}{8r} {8r}{pad}{m}{sc}{} |
| 79 |
\installrawfont {padri8r}{padri8r,8r}{8r} {8r}{pad}{m}{it}{} |
| 80 |
\installrawfont {padro8r}{padro8r,8r}{8r} {8r}{pad}{m}{sl}{} |
| 81 |
|
| 82 |
\installrawfont {pads8r}{pads8r,8r}{8r} {8r}{pad}{sb}{n}{} |
| 83 |
\installrawfont {padsc8r}{padsc8r,8r}{8r} {8r}{pad}{sb}{sc}{} |
| 84 |
\installrawfont {padsi8r}{padsi8r,8r}{8r} {8r}{pad}{sb}{it}{} |
| 85 |
\installrawfont {padso8r}{padso8r,8r}{8r} {8r}{pad}{sb}{sl}{} |
| 86 |
|
| 87 |
\installrawfont {padb8r}{padb8r,8r}{8r} {8r}{pad}{b}{n}{} |
| 88 |
\installrawfont {padbi8r}{padbi8r,8r}{8r} {8r}{pad}{b}{it}{} |
| 89 |
\installrawfont {padbo8r}{padbo8r,8r}{8r} {8r}{pad}{b}{sl}{} |
| 90 |
\endinstallfonts |
| 91 |
|
| 92 |
|
| 93 |
% In the above commands, the commands have been lined up to |
| 94 |
% visually separate those arguments that have to do with how |
| 95 |
% a font is declared to LaTeX (rightmost) from those arguments |
| 96 |
% that specify how the font is made and what it should be called. |
| 97 |
|
| 98 |
|
| 99 |
% The following commands make a very basic installation of "pad" |
| 100 |
% families in the OT1, T1, and TS1 encodings; there is not attempt |
| 101 |
% to make use of the -Exp (expert) or -SC (smallcaps) fonts in |
| 102 |
% the AGaramond family. (One reason for making this distinction |
| 103 |
% is that Adobe sell these other fonts separately, so some people |
| 104 |
% may have the basic set used below and nothing more. Another |
| 105 |
% reason is that for many typefaces, there are no expert or -SC |
| 106 |
% fonts at all. Adapting an example using such fonts to a typeface |
| 107 |
% which do not have them is much too confusing for a beginner.) |
| 108 |
\installfonts |
| 109 |
\installfamily{OT1}{pad}{} |
| 110 |
\installfamily{T1}{pad}{} |
| 111 |
\installfamily{TS1}{pad}{} |
| 112 |
|
| 113 |
\installfont {padr8t}{padr8r,newlatin}{t1} {T1}{pad}{m}{n}{} |
| 114 |
\installfont {padr7t}{padr8r,newlatin}{ot1} {OT1}{pad}{m}{n}{} |
| 115 |
\installfont {padrc8t}{padr8r,newlatin}{t1c} {T1}{pad}{m}{sc}{} |
| 116 |
\installfont {padrc7t}{padr8r,newlatin}{ot1c} {OT1}{pad}{m}{sc}{} |
| 117 |
\installfont {padr8i}{padr8r,textcomp}{ts1} {TS1}{pad}{m}{n}{} |
| 118 |
% There is no difference between the n and the sc shapes |
| 119 |
% of TS1 encoded fonts, hence the same TeX font can be |
| 120 |
% used for both. LaTeX does however need the declarations |
| 121 |
% to be explicit, hence this \installfontas command. |
| 122 |
\installfontas{padr8i} {TS1}{pad}{m}{sc}{} |
| 123 |
% The "option nosc" below is a speed optimization. |
| 124 |
% newlatin.mtx normally makes sure that a smallcaps |
| 125 |
% alphabet is defined (faking it if necessary), |
| 126 |
% regardless of whether that alphabet is at all |
| 127 |
% going to be used. By passing it the "nosc" option, |
| 128 |
% one can tell newlatin.mtx to completely skip those |
| 129 |
% commands that have to do with smallcaps. |
| 130 |
\installfont {padri8t}{padri8r,newlatin option nosc}{t1} {T1}{pad}{m}{it}{} |
| 131 |
\installfont {padri7t}{padri8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{it}{} |
| 132 |
\installfont {padri8i}{padri8r,textcomp}{ts1} {TS1}{pad}{m}{it}{} |
| 133 |
\installfont {padro8t}{padro8r,newlatin option nosc}{t1} {T1}{pad}{m}{sl}{} |
| 134 |
\installfont {padro7t}{padro8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{sl}{} |
| 135 |
\installfont {padro8i}{padro8r,textcomp}{ts1} {TS1}{pad}{m}{sl}{} |
| 136 |
|
| 137 |
% The reason newlatin is not passed the nosc option when |
| 138 |
% making the "n" shape fonts here is another (more tricky) |
| 139 |
% speed optimization. If the metric argument of two |
| 140 |
% subsequent \installfont commands are identical then the |
| 141 |
% respective glyph bases will be identical too, and in these |
| 142 |
% cases fontinst saves work by not rebuilding the glyph base |
| 143 |
% at the second command, but instead using the cached |
| 144 |
% definitions from the first. |
| 145 |
\installfont {pads8t}{pads8r,newlatin}{t1} {T1}{pad}{sb}{n}{} |
| 146 |
\installfont {pads7t}{pads8r,newlatin}{ot1} {OT1}{pad}{sb}{n}{} |
| 147 |
\installfont {padsc8t}{pads8r,newlatin}{t1c} {T1}{pad}{sb}{sc}{} |
| 148 |
\installfont {padsc7t}{pads8r,newlatin}{ot1c} {OT1}{pad}{sb}{sc}{} |
| 149 |
% Thus the last four commands cause four fonts to be |
| 150 |
% generated, but the pads8r.mtx and newlatin.mtx files |
| 151 |
% are only read once. |
| 152 |
\installfont {pads8i}{pads8r,textcomp}{ts1} {TS1}{pad}{sb}{n}{} |
| 153 |
\installfontas{pads8i} {TS1}{pad}{sb}{sc}{} |
| 154 |
\installfont {padsi8t}{padsi8r,newlatin option nosc}{t1} {T1}{pad}{sb}{it}{} |
| 155 |
\installfont {padsi7t}{padsi8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{it}{} |
| 156 |
\installfont {padsi8i}{padsi8r,textcomp}{ts1} {TS1}{pad}{sb}{it}{} |
| 157 |
\installfont {padso8t}{padso8r,newlatin option nosc}{t1} {T1}{pad}{sb}{sl}{} |
| 158 |
\installfont {padso7t}{padso8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{sl}{} |
| 159 |
\installfont {padso8i}{padso8r,textcomp}{ts1} {TS1}{pad}{sb}{sl}{} |
| 160 |
|
| 161 |
\installfont {padb8t}{padb8r,newlatin}{t1} {T1}{pad}{b}{n}{} |
| 162 |
\installfont {padb7t}{padb8r,newlatin}{ot1} {OT1}{pad}{b}{n}{} |
| 163 |
\installfont {padbc8t}{padb8r,newlatin}{t1c} {T1}{pad}{b}{sc}{} |
| 164 |
\installfont {padbc7t}{padb8r,newlatin}{ot1c} {OT1}{pad}{b}{sc}{} |
| 165 |
\installfont {padb8i}{padb8r,textcomp}{ts1} {TS1}{pad}{b}{n}{} |
| 166 |
\installfontas{padb8i} {TS1}{pad}{b}{sc}{} |
| 167 |
\installfont {padbi8t}{padbi8r,newlatin option nosc}{t1} {T1}{pad}{b}{it}{} |
| 168 |
\installfont {padbi7t}{padbi8r,newlatin option nosc}{ot1} {OT1}{pad}{b}{it}{} |
| 169 |
\installfont {padbi8i}{padbi8r,textcomp}{ts1} {TS1}{pad}{b}{it}{} |
| 170 |
\installfont {padbo8t}{padbo8r,newlatin option nosc}{t1} {T1}{pad}{b}{sl}{} |
| 171 |
\installfont {padbo7t}{padbo8r,newlatin option nosc}{ot1} {OT1}{pad}{b}{sl}{} |
| 172 |
\installfont {padbo8i}{padbo8r,textcomp}{ts1} {TS1}{pad}{b}{sl}{} |
| 173 |
\endinstallfonts |
| 174 |
|
| 175 |
|
| 176 |
% The set of commands above will "fake" an sc shape for the typeface |
| 177 |
% by making dual use of the capitals in the n shape (Regular): both |
| 178 |
% as normal (for the upper case in the sc shape) and shrunk to 80% of |
| 179 |
% their normal size (for the lower case in the sc shape). This works |
| 180 |
% (anyone who looks at it will understand what was intended), but it |
| 181 |
% does not look good, and therefore it is always better to make use |
| 182 |
% of proper smallcaps when it is available. |
| 183 |
% |
| 184 |
% The next set of commands is another take at creating the "pad" |
| 185 |
% families, this time making use of the proper smallcaps in padrc8r |
| 186 |
% and padsc8r. The files created by this set of commands will |
| 187 |
% completely overwrite the files created by the previous set of |
| 188 |
% commands; in practice one would only include one set of commands, |
| 189 |
% but both are provided here for comparison. |
| 190 |
\installfonts |
| 191 |
\installfamily{OT1}{pad}{} |
| 192 |
\installfamily{T1}{pad}{} |
| 193 |
\installfamily{TS1}{pad}{} |
| 194 |
|
| 195 |
% Since the glyph bases used for the n and sc shapes in this |
| 196 |
% case are different, there is no point in doing the smallcaps |
| 197 |
% processing when making the n shape fonts. |
| 198 |
\installfont {padr8t}{padr8r,newlatin option nosc}{t1} {T1}{pad}{m}{n}{} |
| 199 |
\installfont {padr7t}{padr8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{n}{} |
| 200 |
% There is actually no point in doing that processing for |
| 201 |
% the sc shape fonts either! This is because the glyph names |
| 202 |
% used in padrc8r are the same as those used in padr8r (and |
| 203 |
% padri8r), and thus the smallcaps glyphs will already have |
| 204 |
% been delt with by the code for lower case glyphs. Another |
| 205 |
% consequence is that the same ETX files as are used for |
| 206 |
% the other shapes should be used for the sc shape. |
| 207 |
\installfont {padrc8t}{padrc8r,newlatin option nosc}{t1} {T1}{pad}{m}{sc}{} |
| 208 |
\installfont {padrc7t}{padrc8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{sc}{} |
| 209 |
\installfont {padr8i}{padr8r,textcomp}{ts1} {TS1}{pad}{m}{n}{} |
| 210 |
\installfontas{padr8i} {TS1}{pad}{m}{sc}{} |
| 211 |
\installfont {padri8t}{padri8r,newlatin option nosc}{t1} {T1}{pad}{m}{it}{} |
| 212 |
\installfont {padri7t}{padri8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{it}{} |
| 213 |
\installfont {padri8i}{padri8r,textcomp}{ts1} {TS1}{pad}{m}{it}{} |
| 214 |
\installfont {padro8t}{padro8r,newlatin option nosc}{t1} {T1}{pad}{m}{sl}{} |
| 215 |
\installfont {padro7t}{padro8r,newlatin option nosc}{ot1} {OT1}{pad}{m}{sl}{} |
| 216 |
\installfont {padro8i}{padro8r,textcomp}{ts1} {TS1}{pad}{m}{sl}{} |
| 217 |
|
| 218 |
\installfont {pads8t}{pads8r,newlatin option nosc}{t1} {T1}{pad}{sb}{n}{} |
| 219 |
\installfont {pads7t}{pads8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{n}{} |
| 220 |
\installfont {padsc8t}{padsc8r,newlatin option nosc}{t1} {T1}{pad}{sb}{sc}{} |
| 221 |
\installfont {padsc7t}{padsc8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{sc}{} |
| 222 |
\installfont {pads8i}{pads8r,textcomp}{ts1} {TS1}{pad}{sb}{n}{} |
| 223 |
\installfontas{pads8i} {TS1}{pad}{sb}{sc}{} |
| 224 |
\installfont {padsi8t}{padsi8r,newlatin option nosc}{t1} {T1}{pad}{sb}{it}{} |
| 225 |
\installfont {padsi7t}{padsi8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{it}{} |
| 226 |
\installfont {padsi8i}{padsi8r,textcomp}{ts1} {TS1}{pad}{sb}{it}{} |
| 227 |
\installfont {padso8t}{padso8r,newlatin option nosc}{t1} {T1}{pad}{sb}{sl}{} |
| 228 |
\installfont {padso7t}{padso8r,newlatin option nosc}{ot1} {OT1}{pad}{sb}{sl}{} |
| 229 |
\installfont {padso8i}{padso8r,textcomp}{ts1} {TS1}{pad}{sb}{sl}{} |
| 230 |
|
| 231 |
% There is however no padbc8r font; hence the sc shape of |
| 232 |
% the b series must still be faked, just as above. |
| 233 |
\installfont {padb8t}{padb8r,newlatin}{t1} {T1}{pad}{b}{n}{} |
| 234 |
\installfont {padb7t}{padb8r,newlatin}{ot1} {OT1}{pad}{b}{n}{} |
| 235 |
\installfont {padbc8t}{padb8r,newlatin}{t1c} {T1}{pad}{b}{sc}{} |
| 236 |
\installfont {padbc7t}{padb8r,newlatin}{ot1c} {OT1}{pad}{b}{sc}{} |
| 237 |
\installfont {padb8i}{padb8r,textcomp}{ts1} {TS1}{pad}{b}{n}{} |
| 238 |
\installfontas{padb8i} {TS1}{pad}{b}{sc}{} |
| 239 |
\installfont {padbi8t}{padbi8r,newlatin option nosc}{t1} {T1}{pad}{b}{it}{} |
| 240 |
\installfont {padbi7t}{padbi8r,newlatin option nosc}{ot1} {OT1}{pad}{b}{it}{} |
| 241 |
\installfont {padbi8i}{padbi8r,textcomp}{ts1} {TS1}{pad}{b}{it}{} |
| 242 |
\installfont {padbo8t}{padbo8r,newlatin option nosc}{t1} {T1}{pad}{b}{sl}{} |
| 243 |
\installfont {padbo7t}{padbo8r,newlatin option nosc}{ot1} {OT1}{pad}{b}{sl}{} |
| 244 |
\installfont {padbo8i}{padbo8r,textcomp}{ts1} {TS1}{pad}{b}{sl}{} |
| 245 |
\endinstallfonts |
| 246 |
|
| 247 |
|
| 248 |
% The "pad" family installed above is however still far from perfect. |
| 249 |
% The `ff', `ffi', and `ffl' ligatures are fakes, since those aren't |
| 250 |
% available in the fonts used. There are however such glyphs in the |
| 251 |
% expert (8x) companions of the fonts used above, and hence the |
| 252 |
% results will be better if these resources can be combined. |
| 253 |
% |
| 254 |
% One of the great advantages with TeX, virtual fonts, and fontinst |
| 255 |
% is the ease with which one can combine glyphs from (what the foundry |
| 256 |
% has packaged as) several different fonts into a single font; |
| 257 |
% if \installfont is given the metrics of two fonts, and some glyph |
| 258 |
% is available in one font but not the other, then fontinst will |
| 259 |
% automatically take it from the font where it was available. |
| 260 |
% Hence one can fill in (at least some of) the blanks of one font |
| 261 |
% by also listing a second font in the metrics argument of |
| 262 |
% \installfont. It will do the right thing automatically. |
| 263 |
\installfonts |
| 264 |
\installfamily{OT1}{padx}{} |
| 265 |
\installfamily{T1}{padx}{} |
| 266 |
\installfamily{TS1}{padx}{} |
| 267 |
% The "padx" family name used here is mainly motivated by |
| 268 |
% tradition. It has been considered useful to simultaneously |
| 269 |
% on a single system have both a family of virtual fonts which |
| 270 |
% do not make use of the expert set of base fonts, and a family |
| 271 |
% of virtual fonts which do make use of the expert set of base |
| 272 |
% fonts. For this to work, the different fonts must have |
| 273 |
% different names. In the Fontname scheme, this is accomplished |
| 274 |
% by including an "x" variant letter in the names to signify that |
| 275 |
% the font is "expertized". In LaTeX there is no proper standard |
| 276 |
% for this, but the custom is to similarly append an "x" to the |
| 277 |
% basic three letter family name, thus yielding "padx" instead |
| 278 |
% of "pad". |
| 279 |
|
| 280 |
% The Fontname scheme is in this case further complicated by |
| 281 |
% a desire to avoid names of more than eight characters |
| 282 |
% (a limit which is important in many old file systems). |
| 283 |
% Therefore many of the two-character variants starting with |
| 284 |
% 9 is a combination of an encoding variant with one or two |
| 285 |
% other variants (most commonly the "x" variant). The commands |
| 286 |
% below utilize these abbreviations (but there is no software |
| 287 |
% involved which would require them to). |
| 288 |
\installfont {padr9e}{padr8r,padr8x,newlatin}{t1} {T1}{padx}{m}{n}{} |
| 289 |
\installfont {padr9t}{padr8r,padr8x,newlatin}{ot1} {OT1}{padx}{m}{n}{} |
| 290 |
% Besides the extra ligatures, the upright 8x fonts also contain |
| 291 |
% a proper smallcaps alphabet. This makes it possible to make do |
| 292 |
% without the -c8r fonts. The commands below will make a font |
| 293 |
% using the upper case from padr8r and (as lower case) the |
| 294 |
% small caps from padr8x. |
| 295 |
\installfont {padrc9e}{padr8r,padr8x,newlatin}{t1c} {T1}{padx}{m}{sc}{} |
| 296 |
\installfont {padrc9t}{padr8r,padr8x,newlatin}{ot1c} {OT1}{padx}{m}{sc}{} |
| 297 |
\installfont {padr9i}{padr8r,padr8x,textcomp}{ts1} {TS1}{padx}{m}{n}{} |
| 298 |
\installfontas{padr9i} {TS1}{padx}{m}{sc}{} |
| 299 |
\installfont {padri9e}{padri8r,padri8x,newlatin option nosc}{t1} {T1}{padx}{m}{it}{} |
| 300 |
\installfont {padri9t}{padri8r,padri8x,newlatin option nosc}{ot1} {OT1}{padx}{m}{it}{} |
| 301 |
\installfont {padri9i}{padri8r,padri8x,textcomp}{ts1} {TS1}{padx}{m}{it}{} |
| 302 |
\installfont {padro9e}{padro8r,padro8x,newlatin option nosc}{t1} {T1}{padx}{m}{sl}{} |
| 303 |
\installfont {padro9t}{padro8r,padro8x,newlatin option nosc}{ot1} {OT1}{padx}{m}{sl}{} |
| 304 |
\installfont {padro9i}{padro8r,padro8x,textcomp}{ts1} {TS1}{padx}{m}{sl}{} |
| 305 |
|
| 306 |
\installfont {pads9e}{pads8r,pads8x,newlatin}{t1} {T1}{padx}{sb}{n}{} |
| 307 |
\installfont {pads9t}{pads8r,pads8x,newlatin}{ot1} {OT1}{padx}{sb}{n}{} |
| 308 |
\installfont {padsc9e}{pads8r,pads8x,newlatin}{t1c} {T1}{padx}{sb}{sc}{} |
| 309 |
\installfont {padsc9t}{pads8r,pads8x,newlatin}{ot1c} {OT1}{padx}{sb}{sc}{} |
| 310 |
\installfont {pads9i}{pads8r,pads8x,textcomp}{ts1} {TS1}{padx}{sb}{n}{} |
| 311 |
\installfontas{pads9i} {TS1}{padx}{sb}{sc}{} |
| 312 |
\installfont {padsi9e}{padsi8r,padsi8x,newlatin option nosc}{t1} {T1}{padx}{sb}{it}{} |
| 313 |
\installfont {padsi9t}{padsi8r,padsi8x,newlatin option nosc}{ot1} {OT1}{padx}{sb}{it}{} |
| 314 |
\installfont {padsi9i}{padsi8r,padsi8x,textcomp}{ts1} {TS1}{padx}{sb}{it}{} |
| 315 |
\installfont {padso9e}{padso8r,padso8x,newlatin option nosc}{t1} {T1}{padx}{sb}{sl}{} |
| 316 |
\installfont {padso9t}{padso8r,padso8x,newlatin option nosc}{ot1} {OT1}{padx}{sb}{sl}{} |
| 317 |
\installfont {padso9i}{padso8r,padso8x,textcomp}{ts1} {TS1}{padx}{sb}{sl}{} |
| 318 |
|
| 319 |
\installfont {padb9e}{padb8r,padb8x,newlatin}{t1} {T1}{padx}{b}{n}{} |
| 320 |
\installfont {padb9t}{padb8r,padb8x,newlatin}{ot1} {OT1}{padx}{b}{n}{} |
| 321 |
% The padb8x font does not contain a smallcaps alphabet -- |
| 322 |
% hence in this case the newlatin.mtx file reverts to faking |
| 323 |
% such an alphabet by shrinking the upper case. The commands |
| 324 |
% can however be the same as above! |
| 325 |
\installfont {padbc9e}{padb8r,padb8x,newlatin}{t1c} {T1}{padx}{b}{sc}{} |
| 326 |
\installfont {padbc9t}{padb8r,padb8x,newlatin}{ot1c} {OT1}{padx}{b}{sc}{} |
| 327 |
\installfont {padb9i}{padb8r,padb8x,textcomp}{ts1} {TS1}{padx}{b}{n}{} |
| 328 |
\installfontas{padb9i} {TS1}{padx}{b}{sc}{} |
| 329 |
\installfont {padbi9e}{padbi8r,padbi8x,newlatin option nosc}{t1} {T1}{padx}{b}{it}{} |
| 330 |
\installfont {padbi9t}{padbi8r,padbi8x,newlatin option nosc}{ot1} {OT1}{padx}{b}{it}{} |
| 331 |
\installfont {padbi9i}{padbi8r,padbi8x,textcomp}{ts1} {TS1}{padx}{b}{it}{} |
| 332 |
\installfont {padbo9e}{padbo8r,padbo8x,newlatin option nosc}{t1} {T1}{padx}{b}{sl}{} |
| 333 |
\installfont {padbo9t}{padbo8r,padbo8x,newlatin option nosc}{ot1} {OT1}{padx}{b}{sl}{} |
| 334 |
\installfont {padbo9i}{padbo8r,padbo8x,textcomp}{ts1} {TS1}{padx}{b}{sl}{} |
| 335 |
\endinstallfonts |
| 336 |
|
| 337 |
|
| 338 |
% Finally we get to my personal favourite -- the families with hanging |
| 339 |
% (a.k.a. oldstyle) figures. From a historical point of view, this is |
| 340 |
% really the most correct appearence of these fonts, because in the 16th |
| 341 |
% century (when Claude Garamond designed the metal types after which the |
| 342 |
% AGaramond fonts where modelled) there was no such thing as lining |
| 343 |
% figures; all figures were hanging. |
| 344 |
% |
| 345 |
% The 8x fonts all contain a suitable set of hanging figures. This makes |
| 346 |
% it very straightforward to make use of these instead of the lining |
| 347 |
% digits of the base fonts. One simply has to make use of ETX files |
| 348 |
% which selects these glyphs hanging figure glyphs instead of the |
| 349 |
% lining figure glyphs. |
| 350 |
\installfonts |
| 351 |
\installfamily{OT1}{padj}{} |
| 352 |
\installfamily{T1}{padj}{} |
| 353 |
\installfamily{TS1}{padj}{} |
| 354 |
% Another custom: a "j" (the Fontname hanging figure variant letter) |
| 355 |
% is appended to the LaTeX family name to distinguish between |
| 356 |
% lining and hanging figure families. |
| 357 |
|
| 358 |
\installfont {padr9d}{padr8r,padr8x,newlatin}{t1j} {T1}{padj}{m}{n}{} |
| 359 |
\installfont {padr9o}{padr8r,padr8x,newlatin}{ot1j} {OT1}{padj}{m}{n}{} |
| 360 |
\installfont {padrc9d}{padr8r,padr8x,newlatin}{t1cj} {T1}{padj}{m}{sc}{} |
| 361 |
\installfont {padrc9o}{padr8r,padr8x,newlatin}{ot1cj} {OT1}{padj}{m}{sc}{} |
| 362 |
\installfont {padr9i}{padr8r,padr8x,textcomp}{ts1} {TS1}{padj}{m}{n}{} |
| 363 |
\installfontas{padr9i} {TS1}{padj}{m}{sc}{} |
| 364 |
\installfont {padri9d}{padri8r,padri8x,newlatin option nosc}{t1j} {T1}{padj}{m}{it}{} |
| 365 |
\installfont {padri9o}{padri8r,padri8x,newlatin option nosc}{ot1j} {OT1}{padj}{m}{it}{} |
| 366 |
\installfont {padri9i}{padri8r,padri8x,textcomp}{ts1} {TS1}{padj}{m}{it}{} |
| 367 |
\installfont {padro9d}{padro8r,padro8x,newlatin option nosc}{t1j} {T1}{padj}{m}{sl}{} |
| 368 |
\installfont {padro9o}{padro8r,padro8x,newlatin option nosc}{ot1j} {OT1}{padj}{m}{sl}{} |
| 369 |
\installfont {padro9i}{padro8r,padro8x,textcomp}{ts1} {TS1}{padj}{m}{sl}{} |
| 370 |
|
| 371 |
\installfont {pads9d}{pads8r,pads8x,newlatin}{t1j} {T1}{padj}{sb}{n}{} |
| 372 |
\installfont {pads9o}{pads8r,pads8x,newlatin}{ot1j} {OT1}{padj}{sb}{n}{} |
| 373 |
\installfont {padsc9d}{pads8r,pads8x,newlatin}{t1cj} {T1}{padj}{sb}{sc}{} |
| 374 |
\installfont {padsc9o}{pads8r,pads8x,newlatin}{ot1cj} {OT1}{padj}{sb}{sc}{} |
| 375 |
\installfont {pads9i}{pads8r,pads8x,textcomp}{ts1} {TS1}{padj}{sb}{n}{} |
| 376 |
\installfontas{pads9i} {TS1}{padj}{sb}{sc}{} |
| 377 |
\installfont {padsi9d}{padsi8r,padsi8x,newlatin option nosc}{t1j} {T1}{padj}{sb}{it}{} |
| 378 |
\installfont {padsi9o}{padsi8r,padsi8x,newlatin option nosc}{ot1j} {OT1}{padj}{sb}{it}{} |
| 379 |
\installfont {padsi9i}{padsi8r,padsi8x,textcomp}{ts1} {TS1}{padj}{sb}{it}{} |
| 380 |
\installfont {padso9d}{padso8r,padso8x,newlatin option nosc}{t1j} {T1}{padj}{sb}{sl}{} |
| 381 |
\installfont {padso9o}{padso8r,padso8x,newlatin option nosc}{ot1j} {OT1}{padj}{sb}{sl}{} |
| 382 |
\installfont {padso9i}{padso8r,padso8x,textcomp}{ts1} {TS1}{padj}{sb}{sl}{} |
| 383 |
|
| 384 |
\installfont {padb9d}{padb8r,padb8x,newlatin}{t1j} {T1}{padj}{b}{n}{} |
| 385 |
\installfont {padb9o}{padb8r,padb8x,newlatin}{ot1j} {OT1}{padj}{b}{n}{} |
| 386 |
\installfont {padbc9d}{padb8r,padb8x,newlatin}{t1cj} {T1}{padj}{b}{sc}{} |
| 387 |
\installfont {padbc9o}{padb8r,padb8x,newlatin}{ot1cj} {OT1}{padj}{b}{sc}{} |
| 388 |
\installfont {padb9i}{padb8r,padb8x,textcomp}{ts1} {TS1}{padj}{b}{n}{} |
| 389 |
\installfontas{padb9i} {TS1}{padj}{b}{sc}{} |
| 390 |
\installfont {padbi9d}{padbi8r,padbi8x,newlatin option nosc}{t1j} {T1}{padj}{b}{it}{} |
| 391 |
\installfont {padbi9o}{padbi8r,padbi8x,newlatin option nosc}{ot1j} {OT1}{padj}{b}{it}{} |
| 392 |
\installfont {padbi9i}{padbi8r,padbi8x,textcomp}{ts1} {TS1}{padj}{b}{it}{} |
| 393 |
\installfont {padbo9d}{padbo8r,padbo8x,newlatin option nosc}{t1j} {T1}{padj}{b}{sl}{} |
| 394 |
\installfont {padbo9o}{padbo8r,padbo8x,newlatin option nosc}{ot1j} {OT1}{padj}{b}{sl}{} |
| 395 |
\installfont {padbo9i}{padbo8r,padbo8x,textcomp}{ts1} {TS1}{padj}{b}{sl}{} |
| 396 |
\endinstallfonts |
| 397 |
|
| 398 |
% This closes the file opened by \recordtransforms above. |
| 399 |
\endrecordtransforms |
| 400 |
|
| 401 |
\bye |
| 402 |
|
| 403 |
% The installations made by the above commands are certainly not |
| 404 |
% optimal. Some things which can be improved are: |
| 405 |
% |
| 406 |
% - Although the padrc9e, padrc9t, padsc9e, padsc9t, padrc9d, |
| 407 |
% padrc9o, padsc9d, and padsc9o fonts contain proper smallcaps |
| 408 |
% glyphs, there are no kerns between the smallcaps and |
| 409 |
% the upper case in these fonts, because there were no such |
| 410 |
% kerns in any of the fonts they are based on. There are |
| 411 |
% however such kerning pairs in padrc8r and padsc8r, and it is |
| 412 |
% quite easy to extract this information using the \reglyphfont |
| 413 |
% command with the settings in the csckrn2x.tex file. |
| 414 |
% |
| 415 |
% - The padrc8t, padrc7t, padsc8t, and padsc7t fonts that are |
| 416 |
% based on padrc8r and padsc8r respectively have hanging figures, |
| 417 |
% whereas the other fonts in the same family have lining figures. |
| 418 |
% This is only because that is how the foundry packaged the |
| 419 |
% glyphs into fonts, and the careful font installer might want |
| 420 |
% to straighten out this situation. One way to do that is |
| 421 |
% to make use of the unsetnum.mtx file, another is to make |
| 422 |
% use of the `suffix' mechanism (new in v1.923). |
| 423 |
% |
| 424 |
% - One glyph which is missing from all the fonts made above is |
| 425 |
% the Euro glyph (and that is kind of awkward these days, although |
| 426 |
% as of v1.926 textcomp.mtx fakes this using a C and two rules). |
| 427 |
% One way to supply a Euro glyph is to provide yet another font |
| 428 |
% (besides the -8r's and -8x's) as base font, if that extra |
| 429 |
% font contains the missing Euro glyph. The same trick can be used |
| 430 |
% to get greek capitals for the OT1-encoded fonts. |
| 431 |
|