Single TFM file (no VF!) for Type 1 fonts
Using AFM2TFM and PLtoTF
To create a single TFM file -- complete with ligatures and kerning -- from an AFM file:
where
- afm2tfm <fontfilename> -T texnansx.enc -v <fontfilename>
- rename <fontfilename>.vpl <fontfilename>.pl
- pltotf <fontfilename>
<fontfilename>
is the name of the AFM file. You may wish to rename the file using the Karl Berry name. The appropriate decoration for names of LY1 (TeX 'n ANSI) encoded fonts is"8y"
. For example, the TFM file for Times-Roman generated this way would be calledptmr8y.tfm
.Make a note of the line printed by AFM2TFM. It is what you need to add to your
- Note: use
texnansx.enc
(instead oftexnansi.enc
) (*) in the argument to AFM2TFM to avoid problems relating to repeated encoding (texnansx.enc
has the second occurence replaced by/.notdef
).(*) You may need to hold down the Shift key when clicking on the links to the two encoding files above to prevent your browser from treating them as non-text files.
- Note: The
.tfm
file made by AFM2TFM is overwritten by PLtoTF -- only the.vpl
file is used.
- Note: The
.vpl
file is renamed to avoid having to give an extension when calling PLtoTF
- Note: Ignore any complaints by AFM2TFM about adjusting some metrics
- Note: Ignore two complaints: "...don't know that property name..." from PLtoTF
- Note: If there are problems, check the versions of the utilities you are using by passing them
--version
on the command line. Use AFM2TFM version 8.1 and PLtoTF version 3.5 or later.
psfonts.map
file so DVIPS does the right thing when it comes across a reference to the font in the DVI file:
<fontfilename> <PS FontName> "TeXnANSIEncoding ReEncodeFont" <texnansi.enc
where
<PS FontName>
is the PostScript FontName. If the font is not printer resident you also need to tell DVIPS to include it, so you end up with a line like:
adbi8y AGaramond-BoldItalic "TeXnANSIEncoding ReEncodeFont" <texnansi.enc <gdbi.pfb
For additional information see: