Skip to main content

approx_text_width

Function approx_text_width 

Source
pub fn approx_text_width(text: &str, size: f32, bold: bool) -> f32
Expand 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).