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 161205 - Underlines are not drawn on Win32.
Underlines are not drawn on Win32.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-12-13 21:41 UTC by Kazuki Iwamoto
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (8.12 KB, image/jpeg)
2004-12-13 21:47 UTC, Kazuki Iwamoto
Details

Description Kazuki Iwamoto 2004-12-13 21:41:26 UTC
Please describe the problem:
gtkimcontextime.c is using pango_attr_underline_new (PANGO_UNDERLINE_SINGLE)
and pango_attr_underline_new (PANGO_UNDERLINE_DOUBLE),
when gtk_im_context_get_preedit_string is called.
But, underlines are not drawn.
This issue occur in all text input (GtkEntry Gtk, GtkTextView and so on).
This issue doesn't occur in gtk+-2.4.13 and imime-0.1.2.


Steps to reproduce:
1. run the program which uses input method in ja:ko:zh on Windows.
for example, testtext.exe.

Actual results:
underlines are not drawn.

Expected results:
underlines are drawn.(like gtk+-2.4.13 and imime-0.1.2)

Does this happen every time?
every time

Other information:
Comment 1 Kazuki Iwamoto 2004-12-13 21:47:30 UTC
Created attachment 34807 [details]
screenshot
Comment 2 Tor Lillqvist 2004-12-14 00:13:20 UTC
This seems to be a problem with HEAD gtk+ and pango in general, not specific to 
CJK or gtkimcontextime.c. No underlines are drawn in testgtk's label test, 
either. Probably the Pango renderer etc changes are only halfway implemented on 
Windows.
Comment 3 Tor Lillqvist 2004-12-14 00:39:27 UTC
Hmm, or perhaps the immediate reason for the problem is that 
pangowin32.c:pango_win32_font_get_metrics() doesn't set the 
underline_thickness. (Nor underline_position, strikethrough_position and 
strikethrough_thickness.) It is then left as zero. When underline_thickness is 
zero, if I traced it correctly in the debugger, this means that eventually 
gdk_drawable_real_draw_trapezoids() won't draw anything as height==0. 
Comment 4 Tor Lillqvist 2004-12-14 01:10:28 UTC
Fixed in HEAD and pango-1-6:

2004-12-14  Tor Lillqvist  <tml@iki.fi>

	* pango/pangowin32.c (pango_win32_font_get_metrics): Set also
	underline and strikethrough position and thickness. (#161205)