Skip to main content

set_font_parameter

Function set_font_parameter 

Source
pub fn set_font_parameter(key: &str, p: usize, value: i64) -> bool
Expand description

Set \fontdimen<p> of the font whose array is stored under key; a parameter past its end grows it with zeros (TeX_Fonts.pool.ltxml:138-146, tex.web §580), and a font without one gets an array of its own — as TeX’s \nullfont has parameters, where Perl’s setter does nothing for a font without data (:141). Written in place and so global, as every font parameter assignment is (tex.web §1253): the array is created unbound by any group, whatever \globaldefs. Returns false, assigning nothing, for parameter 0 or one past TeX’s font memory (font::FONT_MEM_SIZE).