Skip to main content

measure_text

Function measure_text 

Source
pub fn measure_text(t: &str, size: f32, font: Option<&Font>) -> Vector2
Expand description

Returns the (width, height) of text when drawn with draw_text at this size.