>   I am using fltk 1.19 to develop an application for chinese 
> users,under windows. In my apps window, Fl_Input , 
> Fl_Text_Editor is used. It is good to edit english characters 
> ,but when enter chinese character, the cursor is position at 
> wront place ,so if I want to move cursor , is will display 
> mess text. Notice, the chinese character is two byte width, 
> so when dealing with chinese characters, it need to move 2 
> byte per step. How can I fix the problem.

Fltk-1.1.9 does not handle multi-byte characters.

If you use fltk-1.3 or perhaps fltk-2, both of these handle text as
UTF-8 so ought to be able to handle Chinese characters.
Fltk-1.3 has the same basic API as fltk-1.1.9, so the code you have
should recompile against fltk-1.3 with no problems. Compiling against
fltk-2 will entail some rework of you code, because it has a different
API.

I don't know how well the support for Chinese characters has been tested
for either fltk-1.3 or fltk-2, so we would probably welcome any
observations or feedback that you have.



SELEX Sensors and Airborne Systems Limited
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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to