Re: How to check if a font has a given character?



Christian Neumair wrote:

Am Donnerstag, den 15.09.2005, 17:06 -0300 schrieb Eduardo M KALINOWSKI:
 


     

Right. Looking at it, the function pango_coverage_get() seems promising.
However, I'm unsure about the index_ argument. Would that be index of
that I want to check, according the the Unicode tables?
   


Sorry, but I have no clue here. I think it can simply take a char,
whatever its numerical value means (see below). I'd just make a
font_is_suitable helper that defines a char array and iterates through
it, checking pango_font_get_coverage foreach array member.

I'm really interested in the meaning of a character's integer value,
maybe you could explain this to us? :)

 

Well, I did some experiments and the argument is as I expected, it's
numerical index in the Unicode table. To give an example, to check for
the character

U+0916 DEVANAGARI LETTER KHA

one passes 0x0916. I don't know why the argument is a gint, though, if
there is gunichar for that.


-- 
The more the merrier.
                -- John Heywood

Eduardo M KALINOWSKI
ekalin bol com br
http://move.to/hpkb





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