Skip to main content

font_parameters_for_name

Function font_parameters_for_name 

Source
pub fn font_parameters_for_name(name: &str) -> &'static [f64]
Expand description

The TFM parameters \font gives a font of this name, per point of its size — Perl’s getMetricForName (Common/Font.pm:551-562): the name’s own metric, else its family at 10pt, else Computer Modern Roman at the name’s size, else cmr10; the size is the name’s trailing digits (10 without). This port’s size-less and hand-merged entries (cmr, cmbx, cmex, …) carry no parameters and are passed over, as Perl has none of them. Perl’s Error on the cmr10 fallback is not ported: it fires for valid fonts (ecrm1000).