> Hmm, well, my test code (including the simple version I just > posted) *is* now working on this Vista box, with my proposed > changes applied.
Argh! Well, back at work, with a WinXP box, and the changes that worked so well on my Vista laptop at home Do Not Work on XP. > - It only fixes the specific case for the win32 version of: > void Fl_GDI_Graphics_Driver::draw(const char* str, int n, int > x, int y); On Vista - not on XP. I have to suspect that this is some MS weirdness, as the code I am compiling, and the tools, and the fonts, are the same... Still, it is no more broken than it was on XP, so at least the Vista/Win7 users will be better off! > - But does not address the equivalent problem in: > void Fl_GDI_Graphics_Driver::draw(int angle, const char* > str....); that uses a similar but different approach. > Actually, the "easy" fix for that method might be to *not* > use fl_utf8decode() at all but only to use fl_utf8toUtf16() > and process the whole string into UTF16 in one go. Fixed in svn - for Vista (and I assume Win7) but still NOT working on XP, and it looks as if my change may have introduced a regression. I suspect I'm off by one or something in reading the utf8 stream, as the last glyph in each test string seems to be getting corrupted slightly. 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
