Author: manolo
Date: 2011-08-08 05:24:54 -0700 (Mon, 08 Aug 2011)
New Revision: 8930
Log:
Fix STR #2688. fl_width(' ') was wrong under X11 without XFT.
Modified:
branches/branch-1.3/src/xutf8/utf8Wrap.c
Modified: branches/branch-1.3/src/xutf8/utf8Wrap.c
===================================================================
--- branches/branch-1.3/src/xutf8/utf8Wrap.c 2011-08-08 10:07:03 UTC (rev
8929)
+++ branches/branch-1.3/src/xutf8/utf8Wrap.c 2011-08-08 12:24:54 UTC (rev
8930)
@@ -900,6 +900,7 @@
int nb_font; /* quantity of fonts in the font array */
char glyph[2]; /* byte1 and byte2 value of the UTF-8 char
*/
int *ranges; /* sub range of iso10646 */
+ unsigned int no_spc;
nb_font = font_set->nb_font;
x = 0;
@@ -924,7 +925,8 @@
first = fnum;
last_fnum = fnum;
- ucs = XUtf8IsNonSpacing(ucs);
+ no_spc = XUtf8IsNonSpacing(ucs);
+ if (no_spc) ucs = no_spc;
/*
* find the first encoding which can be used to
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit