Skip to main content

base14_glyph_units

Function base14_glyph_units 

Source
fn base14_glyph_units(face: Base14Font, ch: char) -> f32
Expand description

Width of a single character in a Base14 face, in 1/1000 em. WinAnsi natives go through the baked O(1) table; extended glyphs (Latin Extended-A, math operators, ligatures) go through the baked sorted name index. Anything else (Cyrillic, CJK, emoji) silently returns the width of ?; the PDF emit path renders those characters as ? too, so widths and content stream stay in sync. Embedded families exist precisely so callers wanting real coverage can opt out of this ?-everywhere behaviour.