GNOME Bugzilla – Bug 347146
underline/overstrike spaces
Last modified: 2006-09-12 01:44:01 UTC
Currently we don't underline/overstrike spaces. That should be fixed. RH bug with test case. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198136
*** Bug 354709 has been marked as a duplicate of this bug. ***
I'm patching pango to use logical rect for underline/overstroke x and width. Makes more sense. The only thing I'm not sure yet is whether I should update ink rect to include underline/overstrike. We already do that for the y coordinates. The main problem with it is that all in a sudden we are including trailing whitespace in ink rect. But that's really what it is...
Fixed in HEAD. Not sure whether I should fix in branch. I tend to say yes. 2006-09-11 Behdad Esfahbod <behdad@gnome.org> Bug 347146 – underline/overstrike spaces * pango/pango-renderer.c (add_underline), (add_strikethrough), (pango_renderer_draw_layout_line): Use logical extents for x and width of underline/strikethrough, such that trailing spaces are correctly handled. * pango/pango-layout.c (pango_layout_run_get_extents): Use logical rect for underline/strikethrough, and reflect that in run ink extents. * pango/pango-layout.c (pango_layout_line_get_extents): Don't let runs with empty ink extents affect total ink extents.
Committed to pango-1-14 too.
You are quick, I am writing the patch for this bug. hah :D
Behdad, please close the same bug in Red Hat Bugzilla. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198136