Package: pango

GEnum pango:gravity

Declaration

(gobject:define-genum "PangoGravity" gravity
  (:export t
   :type-initializer "pango_gravity_get_type")
  (:south 0)
  (:east 1)
  (:north 2)
  (:west 3)
  (:auto 4))  

Values

:south
Glyphs stand upright (default).
:east
Glyphs are rotated 90 degrees clockwise.
:north
Glyphs are upside-down.
:west
Glyphs are rotated 90 degrees counter-clockwise.
:auto
Gravity is resolved from the context matrix.

Details

The pango:gravity enumeration 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 instance, and then glyph orientation is controlled using a pango:gravity value. Not every value in this enumeration makes sense for every usage. For example, the :auto value only can be passed to and returned by the pango:context-base-gravity function.
 

See also

2024-2-22