DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2158
Version: 1.3-current


As far as I remember from the code, the Unicode U+00A4 Currency Sign
should not require any special handling.

As far as the CJK wrapping is concerned, there are 3 reasons I can see:

1. the wcwidth() inplementation has rules for certain characters, such
   as "Hangul Jamo medial vowels and final consonants (U+1160-U+11FF)"
   and returns 0 for the column width instead of 2. For more details.
   see: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c

2. the Fl_Text_* line-breaking algorithm is too simple, and looks only
   at "latin" space characters as a line-break, and hence wrapping
   point. Are you expecting the lines to wrap at a particular point
   based on your knowledge of CJK?

   Unfortunately, the FL_Text_* line breaking and wrapping is based
   on a limited number of ascii whitespace characters. FLTK does not
   handle text formatting and layout for non-ascii characters, and it
   is unlikely to be added in the near future.

3. It is a bug.

One final observation: until now I have only looked at Fl_Text_Buffer
and Fl_Text_Display. If you are running in Fl_Text_Editor, it may be
that there are extra things to take into account that I have not yet
looked at.


Link: http://www.fltk.org/str.php?L2158
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to