Enumeration
PangoGravity
Description [src]
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 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
| Available since: | 1.16 | 
Members
| Name | Description | 
|---|---|
| PANGO_GRAVITY_SOUTH | Glyphs stand upright (default)  | 
| PANGO_GRAVITY_EAST | Glyphs are rotated 90 degrees counter-clockwise.  | 
| PANGO_GRAVITY_NORTH | Glyphs are upside-down.  | 
| PANGO_GRAVITY_WEST | Glyphs are rotated 90 degrees clockwise.  | 
| PANGO_GRAVITY_AUTO | Gravity is resolved from the context matrix. | 
Type functions
pango_gravity_get_for_matrix
Finds the gravity that best matches the rotation component
in a PangoMatrix.
Available since: 1.16
pango_gravity_get_for_script
Returns the gravity to use in laying out a PangoItem.
Available since: 1.16
pango_gravity_get_for_script_and_width
Returns the gravity to use in laying out a single character
or PangoItem.
Available since: 1.26
pango_gravity_to_rotation
Converts a PangoGravity value to its natural rotation in radians.
Available since: 1.16



