[pygtk] Pango Gravity
David G. Mackay
mackay_d at bellsouth.net
Fri Mar 7 23:33:11 WST 2008
I see that pygtk 2.12 has the bindings for the pango gravity
capabilities, but I can't quite make it do what I want. First off, I
can't find the path to specify PANGO_GRAVITY_SOUTH (or EAST, etc.). A
get_base_gravity returns an enum of type PangoGravity, but how do I
reference it? Next, I want to be able to mix standard layout text and
vertical text running bottom to top (rotated counter clockwise 90
degrees). Calling set_base_gravity with an integer value of 2 rotates
the text 180 degrees, but values of 0, 1, and 3 give me a standard text
layout.
Unfortunately, the online reference doesn't yet cover 2.12. Can anyone
point me to additional documentation or code snippets that cover this?
Thanks,
Dave
More information about the pygtk
mailing list