pub fn approximate_text_width(text: &str) -> f64
Approximate text width in pixels using a character-width table. Calibrated for ~12px font. For other sizes, use approximate_text_width_at.
approximate_text_width_at