pub fn approx_text_width(text: &str, size: f32, bold: bool) -> f32Expand description
Approximate text width in points for autofit (no font metrics in the engine: average glyph
widths for the default font; a front end with fonts measures instead, see Session::text_width).