GNOME Bugzilla – Bug 383558
Use ink_rect when drawing labels
Last modified: 2014-07-20 06:29:03 UTC
Downstream discussion: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218615
Created attachment 87755 [details] screenshot showing a clipped label This screenshot shows a GtkLabel with italic text that is being clipped because the ink rectangle extends the logical rectangle.
So, how can a widget tell gtk+ that it needs to paint outside its allocation?
Sorry, not my fault.
*** Bug 460965 has been marked as a duplicate of this bug. ***
Is this bug platform depended? My bug #460965 (duplicate of this bug) only occurs on win32.
It depends on the font. The 'W' glyph in the font you are seeing has negative left-bearing. Any glyph with ink outside the logical glyph box will have the same problem.
I tested the problem with GTK+ 2.10.7 (from gtk-runtime from Pidgin project - http://pidgin.im/) and with GTK+ 2.10.13 (from http://gimp-win.sourceforge.net/stable.html). The glyph "W" is only clipped for GTK+ 2.10.7. But on the screenshots it's easily to see that both packages use different themes and probably different fonts. So I also believe that the problem is not already solved but it only occurs for some fonts.
Created attachment 92582 [details] clipped "W" with GTK+ 2.10.7
Created attachment 92583 [details] normal "W" with GTK+ 2.10.13
The problem still shows up in GTK+ version 2.10.13 here (Linux, Debian Sid, Clearlooks theme).
*** Bug 541360 has been marked as a duplicate of this bug. ***