On 10 Nov 2009, at 15:21, Ryan Homer wrote: > 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?
Assuming you have an NSFont object, e.g. NSFont *myFont = ...; [[myFont coveredCharacterSet] longCharacterIsMember:0x21002]; should work, I think. Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
