4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK 2: double-wide characters below 256 are not displayed
13 Solution: Check the cell width for characters above 127. (Yasuhiro
15 Files: src/gui_gtk_x11.c
18 *** ../vim-6.2.002/src/gui_gtk_x11.c Sat May 31 17:21:37 2003
19 --- src/gui_gtk_x11.c Mon Jun 2 20:31:54 2003
25 ! if (uc >= 0x100 && utf_char2cells(uc) == 2)
28 ! else if (uc < 0x100 /* optimization shortcut */
29 || (utf_char2cells(uc) != 2 && !utf_iscomposing(uc)))
31 INSERT_PANGO_ATTR(pango_attr_font_desc_new(gui.wide_font),
36 ! if (uc >= 0x80 && utf_char2cells(uc) == 2)
39 ! else if (uc < 0x80 /* optimization shortcut */
40 || (utf_char2cells(uc) != 2 && !utf_iscomposing(uc)))
42 INSERT_PANGO_ATTR(pango_attr_font_desc_new(gui.wide_font),
45 for (p = s + start; p < s + end; p += utf_byte2len(*p))
50 else if (!utf_iscomposing(uc))
51 cellcount += utf_char2cells(uc);
53 for (p = s + start; p < s + end; p += utf_byte2len(*p))
58 else if (!utf_iscomposing(uc))
59 cellcount += utf_char2cells(uc);
60 *** ../vim-6.2.002/src/version.c Mon Jun 2 22:01:43 2003
61 --- src/version.c Mon Jun 2 22:15:19 2003
65 { /* Add new patch number below this line */
71 hundred-and-one symptoms of being an internet addict:
72 59. Your wife says communication is important in a marriage...so you buy
73 another computer and install a second phone line so the two of you can
76 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
77 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
78 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
79 \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///