PangoGravity

The #PangoGravity type 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 PangoMatrix, and then glyph orientation is controlled using #PangoGravity. Not every value in this enumeration makes sense for every usage of #PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to pango_context_set_base_gravity() and can only be returned by pango_context_get_base_gravity().

See also: #PangoGravityHint

Values

ValueMeaning
SOUTH0

Glyphs stand upright (default)

EAST1

Glyphs are rotated 90 degrees clockwise

NORTH2

Glyphs are upside-down

WEST3

Glyphs are rotated 90 degrees counter-clockwise

AUTO4

Gravity is resolved from the context matrix

Meta

Since

1.16