Skip to main content

Module extraction

Module extraction 

Source
Expand description

Core trait extraction: extract_traits, font size resolution, text measurement

Functions§

extract_traits
Extract rendering traits from a property list
measure_text_width
Estimate the pixel width of a text string given font properties. Uses approximate character width metrics — a full implementation would use actual TTF glyph advances via ttf-parser.