pub fn approximate_text_width(text: &str) -> f64
Approximate text width in pixels using a character-width table.