TeX font metric

TeX font metric
Filename extension
.tfm
Internet media typeapplication/x-tex-tfm (unofficial)
Developed byDonald E. Knuth
Type of formatfont metric

TeX font metric (TFM) is a font file format used by the TeX typesetting system. It is a font metric format, not an outline font format like TrueType, because it provides only the information necessary to typeset the font such as each character's width, height and depth. The actual glyphs are stored elsewhere. This is not unique to TeX; Adobe's AFM files and Windows' PFM (NTF on modern Windows PostScript driver) files use the same technique.

TFM files contain all of the information TeX needs to produce its device-independent (DVI) output. The actual glyphs are then inserted by the eventual DVI output driver or previewer, using, for instance, TrueType fonts, or fonts in the bitmap PK format derived from a METAFONT source. The format is designed to be extremely compact: in the original Computer Modern distribution, every font's TFM file is smaller than 2 kB.[1]

  1. ^ "CTAN:/tex-archive/fonts/cm/tfm/". Comprehensive TeX Archive Network. 1996-07-08. Retrieved 2006-07-30.