Font experts: How to determine if a glyph is available for a particular character
Font experts: How to determine if a glyph is available for a particular character
- Subject: Font experts: How to determine if a glyph is available for a particular character
- From: Ryan Homer <email@hidden>
- Date: Tue, 10 Nov 2009 10:21:58 -0500
Let's say I have a Unicode character such as U+21002 (CJK Unicode ext. B) and a certain font, say STHeiti. I would like to programatically determine if the font contains a glyph for the character. How can I do this?
I know that NSString(AppKitAdditions) has sizeWithAttribute: but that doesn't take the font into account and I don't want it to automatically substitute a font that has the glyph. I need to know for a specific font.
I've looked into NSAttributedString and NSLayoutManager, etc. but I'm still haven't figured out a solution yet.
Thx!_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden