After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 383558 - Use ink_rect when drawing labels
Use ink_rect when drawing labels
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkLabel
2.10.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
: 460965 541360 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-07 23:39 UTC by Behdad Esfahbod
Modified: 2014-07-20 06:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot showing a clipped label (45.86 KB, image/png)
2007-05-07 22:45 UTC, Sven Neumann
Details
clipped "W" with GTK+ 2.10.7 (8.77 KB, image/png)
2007-07-27 23:47 UTC, Bjoern Voigt
Details
normal "W" with GTK+ 2.10.13 (11.52 KB, image/png)
2007-07-27 23:48 UTC, Bjoern Voigt
Details

Description Behdad Esfahbod 2006-12-07 23:39:16 UTC
Downstream discussion:

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218615
Comment 1 Sven Neumann 2007-05-07 22:45:52 UTC
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.
Comment 2 Behdad Esfahbod 2007-05-08 00:04:45 UTC
So, how can a widget tell gtk+ that it needs to paint outside its allocation?
Comment 3 Behdad Esfahbod 2007-05-08 00:07:35 UTC
Sorry, not my fault.
Comment 4 Behdad Esfahbod 2007-07-27 19:55:25 UTC
*** Bug 460965 has been marked as a duplicate of this bug. ***
Comment 5 Bjoern Voigt 2007-07-27 20:17:39 UTC
Is this bug platform depended? My bug #460965 (duplicate of this bug) only occurs on win32.
Comment 6 Behdad Esfahbod 2007-07-27 20:22:14 UTC
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.
Comment 7 Bjoern Voigt 2007-07-27 23:46:28 UTC
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.
Comment 8 Bjoern Voigt 2007-07-27 23:47:27 UTC
Created attachment 92582 [details]
clipped "W" with GTK+ 2.10.7
Comment 9 Bjoern Voigt 2007-07-27 23:48:24 UTC
Created attachment 92583 [details]
normal "W" with GTK+ 2.10.13
Comment 10 Sven Neumann 2007-07-29 10:54:57 UTC
The problem still shows up in GTK+ version 2.10.13 here (Linux, Debian Sid, Clearlooks theme).
Comment 11 Behdad Esfahbod 2008-07-03 14:00:49 UTC
*** Bug 541360 has been marked as a duplicate of this bug. ***