Skip to main content

standard_14_width

Function standard_14_width 

Source
pub fn standard_14_width(base_font: &str, glyph_name: &str) -> Option<f32>
Expand description

The advance width (1000-unit glyph space) of glyph_name in the standard-14 font whose PDF /BaseFont (or a recognized alias, or a subsetted variant) is base_font, or None if base_font isn’t one of the standard 14 (including Symbol/ZapfDingbats, which this module doesn’t tabulate) or glyph_name is unknown to that font. Courier’s four variants are monospaced (every glyph is 600 units wide per the Adobe Core-14 AFM metrics) and so always return Some(600.0). Oblique variants share their upright counterpart’s widths (Helvetica and Helvetica-Oblique are metrically identical, likewise the bold pair), so only upright/bold tables are stored.