pub fn text_size(scale: Scale, font: &Font<'_>, text: &str) -> (i32, i32)
Expand description
Get the width and height of the given text, rendered with the given font and scale.
Note that this function does not support newlines, you must do this manually.