• 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: -glyphWithName:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -glyphWithName:


  • Subject: Re: -glyphWithName:
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 23 Aug 2014 01:01:07 -0500

On Fri, Aug 22, 2014, at 10:57 PM, Raglan T. Tiger wrote:
>
>
> NSFont *font = [NSFont systemFontOfSize:288];
> NSGlyph glyph = [font glyphWithName:glyphName];
>
>
> if glyphName is @“A” for example I get A
>
> if the glyphName is @“&” I get nothing
>
> if the glyphName is @“ampersand” I get &
>
> I cannot find a list that tells me the names of these non-alphabet
> characters.
>
> Where should I look for this list and will the names be the same
> regardless of font?

You should probably ask this question on the coretext-dev to get an
answer from an authoritative source. But I would wager that the valid
glyph names come from this table:
<https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6post.html>

Obviously 258 names can't cover modern fonts that can span the dozens of
thousands of Unicode codepoints. The documentation on the 'Zapf` table
implies that font designers can name their glyphs whatever the hell they
want:
<https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6Zapf.html>
(see section "The GlyphIdentifier Structure").

So the question I have is: what are you actually trying to do?

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: -glyphWithName:
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >-glyphWithName: (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: Bad EXC_BAD_INSTRUCTION on drawRect call in Swift
  • Next by Date: Re: iOS database within sandbox
  • Previous by thread: -glyphWithName:
  • Next by thread: Re: -glyphWithName:
  • Index(es):
    • Date
    • Thread