Skip to main content

text_width

Function text_width 

Source
pub fn text_width(text: &str, gw: f32, spacing: f32) -> f32
Expand description

Width a string would occupy with the given glyph width + spacing.