On Tue, 5 Nov 2002, John Hunter wrote:

> I would like to write text vertically (rotated 90 degrees) in a
> GtkDrawingArea.  My preliminary look at the docs (I checked the pygtk
> tutorial this time!) suggests that this is no mean feat.

The standard way of doing this in X is to render text to a pixmap, rotate
the pixmap via bit shifting operations, and then blit the rotated pixmap
to the screen.

However, if you really want to handle text well, you should probably look
at something like PyFT (Python Freetype) to render things with full
flexibility and accuracy.

-a

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to