Opened 12 years ago

Closed 12 years ago

#9861 closed defect (fixed)

gtk wxDC::DoDrawRotatedText() - implement text rotation using PangoMatrix for gtk>=2.6

Reported by: wojdyr Owned by:
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: wxDC Cc:
Blocked By: Blocking:
Patch: yes

Description

Added new implementation of DoDrawRotatedText().
One of advantages is that it supports text background.
The old implementation is still used for gtk <2.6

Attachments (1)

gtk-rotated-text.diff download (4.4 KB) - added by wojdyr 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by wojdyr

comment:1 follow-up: Changed 12 years ago by roebling

You don't have to check the GTK+ version, but the pango version using wx_pango_version_check() (wx/gtk/private.h)

comment:2 in reply to: ↑ 1 Changed 12 years ago by wojdyr

Replying to roebling:

You don't have to check the GTK+ version, but the pango version using wx_pango_version_check() (wx/gtk/private.h)

wx_pango_version_check() returns "can't check" for gtk < 2.11, so it's not useful here.

comment:3 Changed 12 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [55161]) use Pango to draw rotated text if possible (this supports text background and should be more efficient), fall back to the old method for old libraries (closes #9861)

Note: See TracTickets for help on using tickets.