Gravity
Description:
[ CCode ( cprefix = "PANGO_GRAVITY_" , type_id = "pango_gravity_get_type ()" ) ]
[ Version ( since = "1.16" ) ]
public enum Gravity
[ Version ( since = "1.16" ) ]
public enum Gravity
`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]
Namespace: Pango
Package: pango