> I used fc-cache to recognize the font loaded in my embedded 
> linux system. 

Using fc-cache should really only be necessary to rebuild the font
cache, e.g. if you add any new fonts. That's pretty much a one-time
action.

Or am I misunderstanding what you are telling us here?

> How can I know what are the specific class of 
> font used from fltk with XFT?

If you have the fltk test apps built, then it might be worth trying the
fonts demo (see tests/fonts), and perhaps the utf8 demo (see test/utf8 )
and seeing what they do, running both on your host system and on your
target system.

In particular, the fonts demo attempts to determine whether the selected
font is a scalable font, or is only available at a few fixed sizes.
That facility might be interesting in studying your problem, so give
that a try and study the source to fonts.cxx.

The utf8 demo can look at any Unicode codepoint in a font, so you can
use that to see which fonts have coverage for the Cyrillic codepoints,
and see how they look on-screen at various sizes.

> Are there any commands on linux 
> to understand better what kind of font are used from X?

Yes. Though the details can be painful. You could try reading the
fontconfig manuals, if you are really keen...

I'd suggest that you study the code in the test folder, in particular
fonts.cxx, and see how to handle fonts from within fltk. That's probably
your least painful option... Also the utf8.cxx code might be worth a
look (though I wrote that up as a quick hack and it is a bit of a
mess... So proceed with caution!)


> Is it 
> possible that fltk with Xft manage the font through the 
> freetype layer?

XFT is a generic API that wraps font handling under X11. In particular
(though not exclusively) it provides support for freetype. 


Also, try using the fl_measure() and fl_text_extents() methods to
measure a few of your strings in the various fonts you are using - that
might show if there is a scaling or sizing issue with your Cyrillic
font.

It may also be worth trying a few different fonts - it is very possible
that the particular Cyrillic font you have selected at present is poorly
scaled and an alternate face may work much better.



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