PangoAlignment

pango.types.Alignment describes how to align the lines of a pango.layout.Layout within the available space.

If the pango.layout.Layout is set to justify using pango.layout.Layout.setJustify, this only affects partial lines.

See pango.layout.Layout.setAutoDir for how text direction affects the interpretation of pango.types.Alignment values.

Values

ValueMeaning
Left0

Put all available space on the right

Center1

Center the line within the available space