Welcome to the UK List of
TeX Frequently Asked Questions
on the Web
Reputable font vendors such as Adobe supply metric files for each
font, in AFM (Adobe Font Metric) form; these can be converted
to TFM (TeX Font Metric) form. Most modern distributions have
prebuilt metrics which will be more than enough for many people; but you may
need to do the conversion yourself if you have special needs or
acquire a new font. One important question is the encoding
(Latin character) fonts; while we all more or less agree about the
position of about 96 characters in fonts (the basic ASCII set), the
rest of the (typically) 256 vary. The most obvious problems are with
floating accents and special characters such as the ‘pounds sterling’
sign. There are three ways of dealing with this: either you change the
TeX macros which reference the characters (not much fun, and
error-prone); or you change the encoding of the font (easier than you
might think); or you use virtual fonts
to TeX that the encoding is the same as it is used to.
LaTeX2e has facilities for dealing with fonts in different
encodings; read the LaTeX Companion
more details. In practice, if you do much non-English (but Latin
script) typesetting, you are strongly recommended to use the
package with option ‘
’ to select
An alternative favoured by some is Y&Y’s “private” LY1 encoding,
which is designed to sit well with “Adobe standard” encoded fonts.
Basic macro support of LY1 is available: note that the
“relation with Adobe’s encoding” means that the LY1 user
needs no virtual fonts.
Alan Jeffrey’s fontinst
package is an AFM to
TFM converter written in TeX; it is used to generate the
files used by LaTeX2e’s PSNFSS package to support use of
PostScript fonts. It is a sophisticated package, not for the faint-hearted,
but is powerful enough to cope with most needs. Much of its power
relies on the use of virtual fonts
For slightly simpler problems, Rokicki’s afm2tfm
distributed with dvips
, is fast and
efficient; note that the metrics and styles that come with
currently LaTeX2e compatible.
For the Macintosh (classic), there is a program called
which does the job (and more).
comes with the (commercial)
distribution, but is itself free
software, and is available on CTAN.
- dviware/dvips (or browse the directory); catalogue entry
- systems/mac/textures/utilities/EdMetrics.sea.hqx; catalogue entry
- fonts/utilities/fontinst (or browse the directory); catalogue entry
- LY1 support
- fonts/psfonts/ly1 (or browse the directory); catalogue entry
This answer last edited: 2011-06-01
previous question, or
Go to FAQ home.
URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=metrics
Comments, suggestions, or error reports? - see
“how to improve the FAQ”.
This is FAQ version 3.26, released on 2013-02-25.