> 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.

Good idea.


> 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.

Yes - I think that sounds better than my idea of walking backwards along
the string to clip off excess characters..



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

Reply via email to