On 19 Jun 2009, at 13:17, chandra shekhar wrote:

I am using fltk-1.3. I guess I don't know the trick you wnat me to do...


Here's my code:


Your code seems basically OK - attached (assuming the attachment works!) is a screen-shot of your code running on this Mac - you can check it and see if it has rendered your strings correctly.
It looks OK to me, but then it is not a language I know...

I think the problem is that you need to explicitly set font that contains the necessary glyphs to render the characters you need. The default fonts that fltk picks tend to be more suitable for LGC languages groups, so I suspect that on your system the fonts don't provide the required glyphs.

What system are you on? That might make a difference here.

With fltk-1.3, on Mac OSX, the fltk code attempts to leverage the Apple font substitution code, such that if the selected font does not have the required glyphs, it allows OSX to search for a replacement font that does. This can be slow, of course, but it means that, at least for me, your code basically works OK.

Something similar is possible on Windows Vista, although how well it will work I can not say.

On Windows XP or earlier, or linux, you will probably have to explicitly set a suitable font directly in your code to make this work. See the font examples in the test directory to see how that is done.

The utf8 demo might also allow you to search through the fonts that fltk can find on your system and see if there is one that might suit your needs.

Hope that helps.
--
Ian








_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to