If I use wxDC.DrawRotatedText with wxPython 2.5/GTK2 with an
angle of anything except zero then no text is drawn. It
draws fine on Windows as well as wxPython 2.4/GTK1.
This was both to a PaintDC and a MemoryDC, with and without
the RENDER extension present.
If I use wxDC.DrawRotatedText with wxPython 2.5/GTK2 with an
angle of anything except zero then no text is drawn. It
draws fine on Windows as well as wxPython 2.4/GTK1.
It should draw with 2.5/GTK1 too. The way it is done there is to draw to a bitmap and then rotate the bitmap and then draw it. IIRC, for some reason that would not work well (or at all) on GTK2 and so it was disabled in anticipation of a native GTK2 way of doing it. But that new implementation hasn't happened yet. Patches are welcome.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
If I use wxDC.DrawRotatedText with wxPython 2.5/GTK2 with an
angle of anything except zero then no text is drawn. It
draws fine on Windows as well as wxPython 2.4/GTK1.
It should draw with 2.5/GTK1 too. The way it is done there is to draw
to a bitmap and then rotate the bitmap and then draw it. IIRC, for
some reason that would not work well (or at all) on GTK2 and so it was
disabled in anticipation of a native GTK2 way of doing it. But that
new implementation hasn't happened yet. Patches are welcome.
If it was drawing to a memorydc and rotating behind the scenes, then
I may as well do all that myself which is the fallback code I
was planning anyway.