> As well as being able to count forward by the correct number of bytes, > in order to move the cursor right by one character for > example, we also > need to be able to count backward by the correct number of > bytes, eg to > move the cursor left. And counting backwards now seems to be a more > complicated action, because now we need to know the preceding > bytes too.
I think if we use the functions from fl_utf.c (which are mainly cloned from fltk2's utf.c) this is all taken care of. I'm pretty sure that at some point (when I was hacking away at the fltk-1.1.8 utf8 port) I had this working for "normal" widgets, but I never got into the Fl_Text_* widgets so I don't really know what they are doing. If they have "private" versions of the utf8 handling functions, they may well be messing up... -- Ian SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
