Coverage of a Label for special unicode glyphs



Hi,

in my program I need to cover a lot of languages (Latin, Cyrillic, Hebrew, Japanese). 
So I converted all needed strings to unicode, and pass them to Gtk::Labels, everything works fine as long as there is a fitting font installed on the system. 
Now I want to make sure that the labels are show in the right way: I see two ways, requieres special font packages at compile time or check at runtime for the coverage and if it is not coverd inform the user that he should add some unicode font packeges or something like that.

I would prefer the second way, so I started to look how that is possible:
my idea was : 
- get the labels layout
- get the attribute list of the layout and then the fontdescription to work on with that to check the 
coverage 

But here is the first problem I ran into:

Pango::AttrList atrlist = m_layout->get_attributes();
Pango::AttrIter atritr = atrlist.get_iter();
Pango::FontDescription fontdesc;
fontdesc = atritr.get_font_desc();
printf("%s\n",fontdesc.to_string().c_str());

I just get "Normal" and "Normal 0"

so did I miss something?
does someone know a good way to check the coverage of a unicode sign show by a label?

thanks in advance

Alex







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]