lv_text_get_width() function
Give the length of a text with a given font
Arguments
txt
a '\0' terminate string
length
length of 'txt' in byte count and not characters (Á is 1 character but 2 bytes in UTF-8)
Return value
length of a char_num long text