> I have changed (r.9055) the Doxygen doc of fl_draw() functions > to state explicitly that all involved strings are UTF-8 encoded > and all lengths are in bytes. > > I would suggest to use the fl_utf8decode() function in your case. > It will successively compute the byte length of each Unicode character > in your UTF-8 string. When you have reached the maximum allowed > number of characters or the string end, you'll know how many bytes > to send to fl_draw(). This would work for LGC scripts provided > accented characters are encoded with a single Unicode value.
The "Unicode in FLTK" section in http://www.fltk.org/doc-1.3/unicode.html already explicitly states: "FLTK will only handle single characters, so composed characters consisting of a base character and floating accent characters will be treated as multiple characters" as this was the consensus when this was all being discussed in 2009. D. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
