• 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: Aki Inoue <email@hidden>
  • Date: Wed, 16 Nov 2005 10:45:05 -0800

Brian,


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?
As Scott commented, there is no one-to-one glyph/character mapping.
Typically a font has more glyphs than the number of characters it supports.


If you want to see all the character codes supported by a font, you can use -[NSFont coveredCharacterSet].


What is the base string supposed to contain?
The base string is the substring that NSGlyphInfo will be attached.

For example, if you have a string @"ABC" and want to attach NSGlyphInfo to the character 'A', your base string would be @"A".
You can choose any character as the base. The string gets significant only when the rich text attribute is stripped from the string (i.e. copied into a plain text document).


Aki
_______________________________________________
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: Damien Bobillot <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>)
 >Re: Character for Glyph? (From: Brian Stern <email@hidden>)

  • Prev by Date: Re: How to get Tool Tip color ?
  • Next by Date: JNI and bundles...
  • Previous by thread: Re: Character for Glyph?
  • Next by thread: Re: Character for Glyph?
  • Index(es):
    • Date
    • Thread