[Fontconfig] Check for the existence of a glyph in a font

Behdad Esfahbod behdad at behdad.org
Fri Jan 29 09:22:02 PST 2010


On 01/28/2010 05:12 PM, Gen-Paul wrote:
> Is there anything in fontconfig's library routines that might help me check
> whether a font provides a glyph that matches a given Unicode code point?

Sure, FcFreeTypeQuery() the font and then FcPatternGetCharSet() the FC_CHARSET
element and then FcCharSetHasChar() it.

behdad

> Or am I barking the wrong tree and should look elsewhere?
> 
> Thanks,
> 
> Gen-Paul


More information about the Fontconfig mailing list