Skip to main content

text_advance_width

Function text_advance_width 

Source
pub fn text_advance_width(content: &str, font: &LoadedFont, scale: f32) -> f32
Expand description

Advance width of content in scaled pixels for the given font, for placing a caret or sizing a field’s text. Newlines carry no advance.