pub fn text_size(text: &[u8], font: *const lv_font_t) -> (i32, i32)
Measure the rendered size of text using font. Returns (width, height) in pixels.
text
font
(width, height)
text must be NUL-terminated (LVGL reads C strings).