Hi folks,
I'm wondering if there's a way to determine whether or not a font supports a particular Unicode character in Cocoa Touch.
Alternatively, is it possible to specify the default substitute character?
Hi folks,
I'm wondering if there's a way to determine whether or not a font supports a particular Unicode character in Cocoa Touch.
Alternatively, is it possible to specify the default substitute character?
Check out CTFontGetGlyphsForCharacters
in the Core Text framework. If it returns zero for a given Unicode character's glyph index, then that character isn't supported in that font. The function returns false if any of the glyphs couldn't be found.