pub fn measure_text(text: &str, size: f32) -> (f32, f32)Expand description
Measure a single line of text at size px with the default UI font (and
the system fallback chain), returning (width, line_height) in pixels. For
laying text out without a live crate::Canvas — e.g. an embedded Android
measure pass that needs the same metrics the renderer will use.