Skip to main content

shortened

Function shortened 

Source
fn shortened(fonts: &Measured<'_>, text: String, width: f32) -> String
Expand description

text trimmed from the front until it measures inside width.