GNOME Bugzilla – Bug 104042
Gtk label doesn't handle italic correctly
Last modified: 2004-12-22 21:47:04 UTC
If having a label with italic text the label doesn't get enough room to draw the last letter. Attaching screenshot.
Created attachment 13719 [details] Screenshot showing bug
Look at the end of "This account is not valid", the 'd' is not fully drawn. (Tested with default theme too)
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.
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 ***