text_alignment
This enum determines how to align the text when drawing it.
left
and top
, as well as right
and bottom
are interchangeable. It means that if you use left
for vertical alignment, it will produce exactly the same result as using top
, and vice versa. top
/bottom
are here only for the sake of convenience and readability.
left
Align left. It will mean that the text position's X coordinate is located at the left side of the text area.
center
Align center. It will mean that the text position's X (or Y) coordinate is located at the center of the text area.
right
Align right. It will mean that the text position's X coordinate is located at the right side of the text area.
top
Align top. It will mean that the text position's Y coordinate is located at the top side of the text area.
bottom
Align bottom. It will mean that the text position's Y coordinate is located at the bottom side of the text area.
Last updated