PangoGravity

PangoGravity 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 [struct@Pango.Matrix], 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 [method@Pango.Context.set_base_gravity] and can only be returned by [method@Pango.Context.get_base_gravity].

See also: [enum@Pango.GravityHint]

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