Skip to main content

Module tfm

Module tfm 

Source
Expand description

TeX font metric files: the character dimensions of a .tfm, scaled as TeX scales them.

A character of a font loaded with \font (preload.ltx’s \tenln, a document’s \font\x=lcircle10) whose family has no standard metric is measured from its own TFM: the Unicode character a fontmap decodes it to belongs to some other font (line10’s slot 45 is an arrowhead 10pt wide; the arrow it maps to is cmmi’s 5pt \vec). Witness 2605.02221 (diagrams.sty arrows). Guard perfect_kernel_batch58::line_font_char_has_its_tfm_width. The size is the font’s size; TeX scales by the design size when \font has no at (tex.web §568; SYNC_STATUS 58f residual).

Structs§

Tfm
The dimension tables of one TFM (tftopl.web / tex.web §539-545).

Functions§

reset_tfm_cache
Forgets the TFMs read so far, misses included: a document may ship its own .tfm, so the next document must not be sized from it (reset_conversion_state, at initialize_report, per paper in a persistent worker; reset_thread_engine).
tfm_for
The TFM of the font named name (line10), found through kpathsea; None when there is no such file or it is no TFM. Cached per name.