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 103662 - underlines don't properly span multiple runs
underlines don't properly span multiple runs
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.2.x
Other other
: Normal normal
: Small fix
Assigned To: gtk-bugs
Owen Taylor
Depends on:
Blocks: 82283
 
 
Reported: 2003-01-17 01:47 UTC by kz
Modified: 2018-02-10 04:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Korean showcase with comparison of alphabet (141.94 KB, image/png)
2003-01-16 11:49 UTC, kz
  Details
showcase of mixed string (22.16 KB, image/png)
2003-02-06 06:38 UTC, kz
  Details
Test Program (988 bytes, text/plain)
2003-06-04 19:38 UTC, Owen Taylor
  Details
output with current Pango/GTK+ (5.42 KB, image/png)
2003-06-04 19:39 UTC, Owen Taylor
  Details
Output with Pango and GTK+ fixes (9.82 KB, image/png)
2003-06-04 20:38 UTC, Owen Taylor
  Details
Pango patch for ink rects (4.82 KB, patch)
2003-06-04 20:40 UTC, Owen Taylor
committed Details | Review
GTK+ patch for underline extents (6.51 KB, patch)
2003-06-04 20:42 UTC, Owen Taylor
committed Details | Review
Showcase over gtk2 2.2.2, pango 1.2.3 (65.82 KB, image/png)
2003-06-12 12:23 UTC, kz
  Details

Description kz 2003-01-16 11:44:42 UTC
Package: pango
Severity: normal
Version: 1.2.0
Synopsis: underline not drawn for multibyte character
Bugzilla-Product: pango
Bugzilla-Component: hangul

Description:
on locale of Korean (ko_KR)
the text of gnome-about has broken chunks of underline;
i.g. <u>this text</u> has shape of
<u>this</u>(just a space without underline)<u>text</u>.

I don't know inside of pango engine.
and someone said this problem is not only for Korean,
but also for other multibyte locales.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-01-16 06:44 -------

Reassigning to the default owner of the component, cwryu@debian.org.

Comment 1 kz 2003-01-16 11:49:26 UTC
Created attachment 13618 [details]
Korean showcase with comparison of alphabet
Comment 2 Owen Taylor 2003-01-28 22:27:55 UTC
Problem is that gdk_draw_layout_line_with_colors() is using
the ink extents to figure out where to draw the underline,
so if you have a run that is all whitespace, it doesn't
get underlined.
Comment 3 kz 2003-02-06 06:38:29 UTC
Created attachment 14146 [details]
showcase of mixed string
Comment 4 Owen Taylor 2003-06-04 19:38:34 UTC
Created attachment 17147 [details]
Test Program
Comment 5 Owen Taylor 2003-06-04 19:39:05 UTC
Created attachment 17148 [details]
output with current Pango/GTK+
Comment 6 Owen Taylor 2003-06-04 20:38:29 UTC
Created attachment 17151 [details]
Output with Pango and GTK+ fixes
Comment 7 Owen Taylor 2003-06-04 20:40:19 UTC
Created attachment 17152 [details] [review]
Pango patch for ink rects
Comment 8 Owen Taylor 2003-06-04 20:42:12 UTC
Created attachment 17153 [details] [review]
GTK+ patch for underline extents
Comment 9 Owen Taylor 2003-06-04 22:51:35 UTC
Pango patch committed; not really related to this bug other
than I was wondering why the underlines, when broken, were
broken in an ugly way.

Wed Jun  4 14:32:47 2003  Owen Taylor  <otaylor@redhat.com>
 
        * pango/glyphstring.c (pango_glyph_string_extents_range):
        Improve handling of empty ink rectangles; rework for
        simplicity. (#103662)
Comment 10 Owen Taylor 2003-06-04 23:47:41 UTC
Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
                                                                     
          
        * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
        When drawing underlines, join up adjacent runs
        where possible, so we don't get changes in
        shaper/font/etc. breaking underlines. (#103662,
        Kang Jeong-Hee)
Comment 11 kz 2003-06-12 12:23:58 UTC
Created attachment 17485 [details]
Showcase over gtk2 2.2.2, pango 1.2.3
Comment 12 Owen Taylor 2003-06-12 12:39:20 UTC
Yeah, I've been thinking for a while of reopening this
bug because the same thing still needs to be done
in gtktextdisplay.c, which isn't drawn with 
gdk_draw_layout().
Comment 13 Elijah Newren 2004-06-19 18:45:17 UTC
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as
Matthias said he was trying to do himself on IRC and was asking for help with. 
If you see this message, it means I was successful at fixing the borken-ness in
bugzilla :)  Sorry for the spam; just query on this message and delete all
emails you get with this message, since there will probably be a lot.
Comment 14 Matthias Clasen 2018-02-10 04:38:21 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.