Re: Character for Glyph?
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