diff --git a/docs/widgets/label.rst b/docs/widgets/label.rst index 265a7b799..acc88d787 100644 --- a/docs/widgets/label.rst +++ b/docs/widgets/label.rst @@ -97,6 +97,16 @@ the Label widget only allows manual text selection with :cpp:expr:`lv_label_get_text_selection_start(label, start_char_index)` and :cpp:expr:`lv_label_get_text_selection_start(label, end_char_index)`. + +Text alignment +-------------- + +To horizontally align the lines of a label the `text_algin` style property can be used. +Note that it has a visible effect only if + +- the label widget's width is larger than the width of the longest line of the text +- the text has multiple lines with non equal line length + Very long texts ---------------