Skip to main content

text_width

Function text_width 

Source
pub fn text_width(m: &dyn TextMeasurer, text: &str, style: FontStyleRef) -> f32
Expand description

Width of text in physical pixels: the fast path for ASCII (and ASCII with subscript digits, when the measurer has their table), TextMeasurer::measure otherwise.