Skip to content

Text alignment

Defines how text is positioned within a display or layout area, combining vertical and horizontal alignment options.

Constants

enum.text_align.BOTTOM_CENTER

Text is aligned to the bottom and horizontally centered.

enum.text_align.BOTTOM_LEFT

Text is aligned to the bottom and flush to the left.

enum.text_align.BOTTOM_RIGHT

Text is aligned to the bottom and flush to the right.

enum.text_align.CENTER

Text is centered both horizontally and vertically.

enum.text_align.CENTER_LEFT

Text is vertically centered and aligned to the left.

enum.text_align.CENTER_RIGHT

Text is vertically centered and aligned to the right.

enum.text_align.TOP_CENTER

Text is aligned to the top and horizontally centered.

enum.text_align.TOP_LEFT

Text is aligned to the top and flush to the left.

enum.text_align.TOP_RIGHT

Text is aligned to the top and flush to the right.

See also