Skip to main content

text_size

Function text_size 

Source
pub fn text_size(text: &[u8], font: *const lv_font_t) -> (i32, i32)
Expand description

Measure the rendered size of text using font. Returns (width, height) in pixels.

text must be NUL-terminated (LVGL reads C strings).