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.
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to