pygfx.utils.enums.TextAlign

class pygfx.utils.enums.TextAlign

Bases: Enum

How text is aligned.

start = 'start'

The same as left if direction is left-to-right and right if direction is right-to-left.

end = 'end'

The same as right if direction is left-to-right and left if direction is right-to-left.

left = 'left'

The text is aligned to the left edge.

right = 'right'

The text is aligned to the right edge.

center = 'center'

The text is centered between the left and right edges.

justify = 'justify'

The words are spread to fill the full space set by max_width.

justify_all = 'justify_all'

Like justifym but also justify the last line.

auto = 'auto'

Unspecified alignment (use default).