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 104042 - Gtk label doesn't handle italic correctly
Gtk label doesn't handle italic correctly
Status: RESOLVED DUPLICATE of bug 81874
Product: gtk+
Classification: Platform
Component: Widget: Other
2.1.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-01-21 10:10 UTC by Mikael Hallendal
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot showing bug (19.66 KB, image/png)
2003-01-21 10:11 UTC, Mikael Hallendal
Details

Description Mikael Hallendal 2003-01-21 10:10:16 UTC
If having a label with italic text the label doesn't get enough room to
draw the last letter. Attaching screenshot.
Comment 1 Mikael Hallendal 2003-01-21 10:11:21 UTC
Created attachment 13719 [details]
Screenshot showing bug
Comment 2 Mikael Hallendal 2003-01-21 10:12:09 UTC
Look at the end of "This account is not valid", the 'd' is not fully
drawn. (Tested with default theme too)
Comment 3 Soren Sandmann Pedersen 2003-01-21 13:05:10 UTC
I guess we should request 

        2 max (hl, hr) + logical width

where hl and hr are the amounts the ink rectangle hang out to the left
and right compared to the logical rectangle. In size_allocate() the
label should only use the logical width when centering.

There are potentially many instances of this problem.
Comment 4 Owen Taylor 2003-01-21 15:38:32 UTC
In general, the alignment of lines in GtkLabel should not
depend on the particular text in the label, so you'd 
have to have some way of getting a fixed amount of padding
for the particular PangoFontDescription (Markup in the
label that changes the font makes things significantly worse,
but possibly can be ignored.)


*** This bug has been marked as a duplicate of 81874 ***