On 2 Nov 2008, at 12:10, Fabien Costantini wrote: > Hi Folks, > > FWIW, this sample with correct 0 terminated utf8 string, does NOT > shows correctly in the box, nor in the menu at least on Ubuntu 8.10. > But it does show correctly in the title bar and printf debug string > (so utf8 draws handled by the linux window manager and system). > > I have chinese installed in my ubuntu 8.10 box and I would tend to > think it is a problem in our lib. > Instead of having the chinese glyphs, we get '?' chars instead in > our fltk-drawn code.
Hi Fabien, I'm not sure it is a fltk problem (per se), as it works fine on this Mac, and on my XP test box (I think the OP is on Windows.) That said, the font selection mechanism for fltk with XFT is pretty brain-dead (I know, 'cos I wrote it) so that places the onus on the user to make sure a font is selected that actually contains the necessary glyphs. My experience suggests that the "standard" fonts in most linux distros (particularly western distros) have very poor glyph coverage for CJK fonts... Might be worth trying with a few different fonts and see if any have better coverage, and if that alleviates the problem you are seeing! That said, the OP seems to be having strange and inconsistent problems with string handling, rather than with specific missing glyphs, which is why we were suggesting he check the scope and termination of his strings. -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

