When lv_canvas’ obj draw a text,
at current api support only 3 text-alignments.
LV_LABEL_ALIGN_LEFT
LV_LABEL_ALIGN_CENTER
LV_LABEL_ALIGN_RIGHT
But if a developer want to align the text by baseline or other type.
It is not easy to align the text.
I observe from the other library such as TFT_eSPI
in the library TFT_eSPI when draw text to the tft,
it supports many type of text-alignments
as the following link
If lvgl’s lv_canvas or lv_draw_label(..) supports for many text-alignments more than at the current point of any version of lvgl,
it will be convenient for manupulating the text-alignment.
Example.
When a maker want to display a label on a line,
the maker set only
x, y
datum : L_BASELINE, C_BASELINE, R_BASELINE
as the following picture,
line is at y = 120
the maker set only x = 120, y = 120 (center of the screen) and datum = C_BASELINE
Or another example
When a maker want to display number on watch-dial,
he just calculate a rotated point around a pivot point.
and set only the rotated point x, y with MC_DATUM for drawing number on the watch-dial.
In the case of labels align has a different meaning. It determines the alignment of the lines, similarly to the Left/Center/Right alignment in Office Word.
Do you have an idea about how to handle C_BASELINE with multi-line text?