• 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: Character for Glyph?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Character for Glyph?


  • Subject: Re: Character for Glyph?
  • From: Brian Stern <email@hidden>
  • Date: Wed, 16 Nov 2005 11:15:20 -0500

At 8:49 AM -0600 11/16/05, Scott Thompson wrote:
>On Nov 15, 2005, at 4:01 PM, Aki Inoue wrote:
>
>> Brian,
>>
>> Not all glyphs have corresponding character code.
>
>To expand on that just a bit.  There is also not always a 1:1 mapping
>between glyphs and character codes.  Consider the word "five".  If
>you type that in some fonts, you'll get an f-i ligature in the place
>of the first two characters.  The result would have three glyphs for
>the four characters.  There need not be a single character code that
>corresponds to the f-i ligature glyph.

The character code for the f-i ligature is 0xdf.  At least that's what I
get if I type one in TextEdit or TextWrangler using New York or Arial.
Certainly for Unicode fonts there is a Unicode or UTF-8 sequence that will
generate each glyph.  The unicode for the f-i ligature is 0xfoo1.  The fact
that the font system may generate this glyph based on other input sequences
doesn't affect this.

If I look at the font I'm interested in in the extended character window it
only shows the first 9 glyph IDs.  If I look at it in font book or with
some code that Aki posted a while ago that dumps all the glyphs I see that
it has 233 glyphs.  If I build an attributed string containing all the
character codes from 0x21 to 0x200 and dump this to rtf and view it in
TextEdit there are a few glyphs that I'm interested in that don't appear.
I can figure out the character codes to generate the other glyphs from the
rtf.

Is there a way to dump all the character codes that will generate all the
glyphs in a specific font?  The character palette's "insert with font"
capability seems to be able to do this.  I haven't been able to get
NSGlyphInfo to work.  What is the base string supposed to contain?

Thanks,

Brian

--
Brian  Stern
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Character for Glyph?
      • From: Aki Inoue <email@hidden>
References: 
 >Character for Glyph? (From: Brian Stern <email@hidden>)
 >Re: Character for Glyph? (From: Aki Inoue <email@hidden>)
 >Re: Character for Glyph? (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: NSURLDownload and Modal Dialog
  • Next by Date: How do I save and restore a custom NSTextAttachmentCell?
  • Previous by thread: Re: Character for Glyph?
  • Next by thread: Re: Character for Glyph?
  • Index(es):
    • Date
    • Thread