(dvips.info)Afm2tfm options


Prev: Special font effects Up: Invoking afm2tfm
Enter node , (file) or (file)node

6.3.3 Afm2tfm options
---------------------

Synopsis:
     afm2tfm [OPTION]... AFMFILE[.afm] [TFMFILE[.tfm]]

   Afm2tfm reads AFMFILE and writes a corresponding (but "raw", see
below) 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 contains only the
character information in the AFM file in TFM format, 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 (Note: Encodings).  Although the encodings agree for most
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.  Note: Making a
font available.

   The command line options to Afm2tfm:

'-a'
     By default, Afm2tfm looks for precomposed accented characters, such
     as tdieresis, and possibly adjusts the height of the basic letter
     (t) upward so that the result of using '\accent' (as in '\"t') is
     visually the same as the precomposed characters.  The '-a' option
     omits such adjustments, so that all characters' heights remain as
     they are given in the AFM file.  (Until Afm2tfm 8.4, released in
     2016, heights could also be adjusted downward, but this is no
     longer the case.)

'-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'.  Note: 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.


automatically generated by info2www version 1.2.2.9