pango-Vertical-Text {RGtk2}R Documentation

Vertical Text

Description

Laying text out in vertical directions

Methods and Functions

pangoGravityGetForMatrix(matrix)
pangoGravityGetForScript(script, base.gravity, hint)

Detailed Description

Since 1.16, Pango is able to correctly lay vertical text out. In fact, it can set layouts of mixed vertical and non-vertical text. This section describes the types used for setting vertical text parameters.

Enums and Flags

PangoGravity
The PangoGravity type 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 pangoContextSetBaseGravity and can only be returned by pangoContextGetBaseGravity.

See also: PangoGravityHint

Since 1.16

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

PangoGravityHint
The PangoGravityHint defines how horizontal scripts should behave in a vertical context. That is, English excerpt in a vertical paragraph for example.

See PangoGravity.

Since 1.16

natural
scripts will take their natural gravity based on the base gravity and the script. This is the default.
strong
always use the base gravity set, regardless of the script.
line
for scripts not in their natural direction (eg. Latin in East gravity), choose per-script gravity such that every script respects the line progression. This means, Latin and Arabic will take opposite gravities and both flow top-to-bottom for example.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/pango/pango-Vertical-Text.html


[Package RGtk2 version 2.12.5-3 Index]