On 11 Apr 2010, at 20:53, jaws wrote: > I am using FLTK 1.3 with X in an embedded system based on AVR32. > The filesystem is created with buildroot. Everything works correct > with the languages like English, Italian, Deutsch, ecc, but When I > tried to insert the Russian and Bulgarian languages, becomes the > troubles. > The Cyrillic fonts are visualized but the font used are not the > same as the other languages, they are smaller. > Could you suggest where I can look for to resolve this problem?
Hard to say. We'd need to know more about what fonts you have on your system, etc. Note that fltk simply calls the underlying OS services for fonts, and it is not uncommon for fonts form different foundries to be scaled differently, which may account for your smaller sizes. Also, it is possible that one or other of the fonts being called is bit-mapped rather than scalable, so you probably only get the glyphs rendered at a few fixed sizes. Are you building fltk with XFT to serve fonts, or are you using the Xlib font services? XFT may do a better job. Possibly... > I have to set something at fltk initialization? Probably not. What have you done? Most likely it is an issue with the quality and scaling of the fonts on the system rather than anything odd in your code. If you don't have full control over the scaling of the fonts that are provided (and in general we don't), it might make sense to have your program measure (e.g. via fl_measure or fl_text_extents) a few "well known" strings in the various available fonts, then trying to adjust the requested font size (by tweaking the values passed to fl_size() for each font face) to try and get the on-screen sizes you want, looking more or less the same size. > I noticed also an error that I don't know if it is related to my > problem > > "XOpenIM() failed" X is trying to open the IM services, and has failed. Unless you are using the IM services for text input (usually to enter Chinese or Japanese text, or some Indian languages) then this probably does not matter. Though you might be using the IM to enter non-latin text I suppose... _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

