General font information decoded from the TFM data can be individually retrieved via a number of font accessors described below.
name: computed by TFM as base name of the file the font was loaded from (for example
file: the argument to
checksum: part of the TFM format, provided by Metafont.
frozen: whether the font is frozen (see Freezing).
design-size: in units of TeX point. For example, the design size of cmr10 (the Computer Modern 10pt roman font) is 10. Apart from the slant (see below), all other dimensions are given in design size units, not TeX point units (unless the font has been frozen; See Freezing). See also Scaling for ways to override the font’s original design size.
original-design-size: the fon’t original design size.
TFM is able to decode Xerox PARC headers when provided (see TeX
Font Metric Files, David Fuchs, TUGboat Volume 2, n.1, pages 12–16
and PLtoPF[9,10]). The following information is extracted from them, and
nil otherwise. Note that when a header of sufficient
length is available, it is in fact impossible to tell for sure whether
it is a Xerox PARC one or not. TFM simply assumes it is. As no other
kind of header has been encountered yet (and the whole TeX Live
distribution has been tested), it is a pretty safe assumption. Finally,
if a header size is greater than that of a Xerox PARC one, TFM
discards what’s left of it.
encoding: the font’s character coding scheme if known (an informal BCPL string, that is, plain ASCII and no parentheses). The class TFM instantiates when loading a font depends on this string (see TFM Files), and in particular, on the specific (case insensitive) values
"TeX math symbols"and
"TeX math extension".
family: another BCPL string, if known (for example
7bits-safe0 or 1 if known. When 1, it means that no character of code lesser than 128 can lead to a character of code greater than 128 by ways of ligatures or extension recipes.
face-numbera number identifying the font, if known.
face-code: decoded from, and filled in when
face-numberis lesser than 18 (see also TFtoPL). The weight is
:light. The slope is
:italic. The expansion is
:extended. Finally, the face code is the concatenation of the upcased first letters of these values. For example,
"MRR"stands for “medium roman regular”.
A font also contains a number of properties extracted from the so-called “parameters” section. They all default to 0.
slant: a scalar ratio (not in design size units; that’s the only exception).
interword-shrink: the font’s normal interword “glue” as three separate values.
ex: TeX’s usual font-dependent units.
extra-space: the font’s additional space to put at the end of sentences.
TeX math symbols and extension fonts have respectively 15 and 6 additional parameters which are also accessible.
axis-heightare available in the
big-op-spacing1..5are available in the
Finally, if the font has any parameters left, they are collected in an
array of numeric values, accessible via the