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.