GNOME Bugzilla – Bug 316597
Rotated texts are not displayed
Last modified: 2011-08-28 18:00:45 UTC
Distribution/Version: Ubuntu breezy Enter a value in a cell. Edit cell format and set rotation to a value != 0. -> Cell is resized, but empty. I don't know if it's related, but I've got the broken pango warning: ** (lt-gnumeric:22326): WARNING **: The Pango library present on your system isbuggy, see http://bugzilla.gnome.org/show_bug.cgi?id=316054 Editing rich text therefore does not work well. Please check with your distribution if a fixed Pango library is available.
Works fine for me with gtk+ 2.6.x and pango 1.8.x. What do you use? The warning covers a different issue only.
pango 1.10.0 gtk 2.8.3 glib 2.8.1 Rotated texts are displayed correctly in charts.
Probably a Pango issue.
It is suspect that gtk+ HEAD's gdk_draw_layout_line_with_colors says... tmp_matrix.x0 = x; tmp_matrix.y0 = y; as opposed to the "+=" used in gdk_draw_layout_with_colors.
I've disabled to clip for rotation for now. That's mostly the same thing.
I'll pop it over to gtk so they can figure out what changed between 2.6 and 2.8.
Do you have a testcase for the problematic behaviour, and does changing tmp_matrix.x0 = x; tmp_matrix.y0 = y; to tmp_matrix.x0 += x; tmp_matrix.y0 += y; fix it ?
*** Bug 316757 has been marked as a duplicate of this bug. ***
We do not have a simple test case, but Gnumeric 1.5.90 is a test case. I do not think that "+=" alone will fix it. In fact, while I believe it needs to be fixed, I am fairly certain that Gnumeric almost always will have x0=y0=0 initially so we will not see a change. Note jody's #5 comment. It makes a difference whether there is a clip rectangle of (0,0,G_MAXINT,G_MAXINT) or no clip rectangle at all. [I still run gtk+ 2.6 so I cannot test this myself]
Ok, I will need more time to create a testcase for this, moving off 2.8.4
I'm just going to assume that this is either fixed, or long obsolete.
I have a vague memory that I fixed this, years ago... But can't find a reference.