lv_text.h¶
Enums
-
enum lv_text_flag_t¶
Options for text rendering.
Values:
-
enumerator LV_TEXT_FLAG_NONE¶
-
enumerator LV_TEXT_FLAG_EXPAND¶
-
enumerator LV_TEXT_FLAG_FIT¶
Max-width is already equal to the longest line. (Used to skip some calculation)
-
enumerator LV_TEXT_FLAG_BREAK_ALL¶
To prevent overflow, insert breaks between any two characters. Otherwise breaks are inserted at word boundaries, as configured via LV_TXT_BREAK_CHARS or according to LV_TXT_LINE_BREAK_LONG_LEN, LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN, and LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN.
-
enumerator LV_TEXT_FLAG_RECOLOR¶
Enable parsing of recolor command
-
enumerator LV_TEXT_FLAG_NONE¶
Functions
-
void lv_text_attributes_init(lv_text_attributes_t *attributes)¶
Initialize the text attributes descriptor
- Parameters:
attributes – the text attributes descriptor to initialize
-
void lv_text_get_size(lv_point_t *size_res, const char *text, const lv_font_t *font, lv_text_attributes_t *attributes)¶
Get size of a text
- Parameters:
size_res – pointer to a 'point_t' variable to store the result
text – pointer to a text
font – pointer to font of the text
attributes – the text attributes, flags for line break behaviour, spacing etc