Go to the first, previous, next, last section, table of contents.

Afm2tfm options

Synopsis:

afm2tfm [option]... afmfile[.afm] [tfmfile[.tfm]]

Afm2tfm reads afmfile and writes a corresponding (but raw) TFM file. If tfmfile is not supplied, the base name of the AFM file is extended with `.tfm' to get the output filename.

The simplest example:

afm2tfm Times-Roman rptmr

The TFM file thus created is raw because it omits ligature and kern information, and does no character remapping; it simply contains the character information in the AFM file in TFM form, which is the form that TeX understands. The characters have the same code in the TFM file as in the AFM file. For text fonts, this means printable ASCII characters will work ok, but little else, because standard PostScript fonts have a different encoding scheme than the one that plain TeX expects (see section Encodings). Although both schemes agree for the printable ASCII characters, other characters such as ligatures and accents vary. Thus, in practice, it's almost always desirable to create a virtual font as well with the `-v' or `-V' option. See section Making a PostScript font available.

The command line options to Afm2tfm:

`-c ratio'
See `-V'; overrides the default ratio of 0.8 for the scaling of small caps.
`-e ratio'
Stretch characters horizontally by ratio; if less than 1.0, you get a condensed font.
`-O'
Output all character codes in the `vpl' file as octal numbers, not names; this is useful for symbol or other special-purpose fonts where character names such as `A' have no meaning.
`-p ps-enc'
Use ps-enc for the destination (PostScript) encoding of the font; ps-enc must be mentioned as a header file for the font in `psfonts.map'. See section `-p': Changing PostScript encodings.
`-s slant'
Slant characters to the right by slant. If slant is negative, the letters slope to the left (or they might be upright if you start with an italic font).
`-t tex-enc'
Use tex-enc for the target (TeX) encoding of the font. Ligature and kern information may also be specified in file. file is not mentioned in `psfonts.map'.
`-T ps-tex-enc'
Use ps-tex-enc for both the PostScript and target TeX encodings of the font. Equivalent to `-p file -t file'.
`-u'
Use only those characters specified in the TeX encoding, and no others. By default, Afm2tfm tries to include all characters in the input font, even those not present in the TeX encoding (it puts them into otherwise-unused positions, arbitrarily).
`-v vpl-file'
Output a VPL (virtual property list) file, as well as a TFM file.
`-V vpl-file'
Same as `-v', but the virtual font generated is a pseudo small caps font obtained by scaling uppercase letters by 0.8 to typeset lowercase. This font handles accented letters and retains proper kerning.

Go to the first, previous, next, last section, table of contents.