Package: pango

Enum pango-gravity

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, and then glyph orientation is controlled using pango-gravity. Not every value in this enumeration makes sense for every usage of pango-gravity. For example, :auto only can be passed to the function pango-context-base-gravity and can only be returned by the function pango-context-base-gravity.
(define-g-enum "PangoGravity" pango-gravity
  (:export t
   :type-initializer "pango_gravity_get_type")
  (:south 0)
  (:east 1)
  (:north 2)
  (:west 3)
  (:auto 4))  
: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.
 

See also

2021-1-5