PangoGravity

pango.types.Gravity represents the orientation of glyphs in a segment of text.

This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity pango.matrix.Matrix, and then glyph orientation is controlled using pango.types.Gravity.

Not every value in this enumeration makes sense for every usage of pango.types.Gravity; for example, pango.types.Gravity.Auto only can be passed to pango.context.Context.setBaseGravity and can only be returned by pango.context.Context.getBaseGravity.

See also: pango.types.GravityHint

Values

ValueMeaning
South0

Glyphs stand upright (default) <img align="right" valign="center" src="m-south.png">

East1

Glyphs are rotated 90 degrees counter-clockwise. <img align="right" valign="center" src="m-east.png">

North2

Glyphs are upside-down. <img align="right" valign="cener" src="m-north.png">

West3

Glyphs are rotated 90 degrees clockwise. <img align="right" valign="center" src="m-west.png">

Auto4

Gravity is resolved from the context matrix