• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Font experts: How to determine if a glyph is available for a particular character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font experts: How to determine if a glyph is available for a particular character


  • Subject: Re: Font experts: How to determine if a glyph is available for a particular character
  • From: Ryan Homer <email@hidden>
  • Date: Tue, 10 Nov 2009 11:38:28 -0500

On 2009-11-10, at 10:51 AM, Alastair Houghton wrote:

> 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
>

Thanks! That is exactly what I needed; you just saved me hours of manual work!_______________________________________________

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

References: 
 >Font experts: How to determine if a glyph is available for a particular character (From: Ryan Homer <email@hidden>)
 >Re: Font experts: How to determine if a glyph is available for a particular character (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS mystery
  • Next by Date: Re: EXC_BAD_ACCESS mystery
  • Previous by thread: Re: Font experts: How to determine if a glyph is available for a particular character
  • Next by thread: Re: NSValueTransformer problem with NSTextField update
  • Index(es):
    • Date
    • Thread