> > Or maybe I can figure out why fl_utf8toUtf16() sometimes 
> does odd things on XP and just use that for consistency.
> 
> I'd favour this one. Consistency on all platforms seems like 
> a sensible
> goal. Especially since we went this route already for X11 with Xft.
> However, I'm not sure what conversion function we used there, and I
> don't know either how Mac OS works in this regard.

OK - I think I have done this; I was off-by-one in the conversion to
UTF16 as I did not read the API docs and did not realise that
fl_utf8toUtf16() always tried to NULL-terminate its output, and so the
buffer I was passing for the converted output was too small sometimes...

> 
> > Note that I still can't persuade XP to handle surrogate 
> pairs nicely anyway...
> 
> That's bad, but maybe it's only a font issue?

No, the font is OK (I've tried several) and they work fine on linux/XFT
and Vista - the Vista code is *identical* to the WinXP code, and Just
Works, so... 

Note that this XP box handles surrogate pairs badly in general - I
created a test UTF16 file with surrogate-pairs in it, and Notepad fails,
Word-2003 fails, but Wordpad works... If I then save it from Wordpad (as
RTF) Word then displays it fine. 
So, anyway, I think the font is fine.

If someone else could try a few tests with surrogate pairs being
rendered on an XP box, that might help, as it is entirely feasible this
box is broken in some non-standard way.




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

Reply via email to