Is there a way to determine whether or not a font can render a particular Unicode character in Cocoa? Alternatively, is it possible to specify the default substitute character?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use CGFontGetGlyphWithGlyphName() for iOS older versions of iOS (2.0). Apple doesn’t seem to document the glyph names but I believe they correspond to this Adobe list:
http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
For example, the glyph for é (U+00E9) is named “eacute” and the code to get the glyph would be: