May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSGlyphInfo — Mac OS X 10.2
This class is used in attributed strings as a value for the attribute
NSGlyphInfoAttributeName. Glyph info objects are
used to specify a mapping between a Unicode character code and a
glyph ID, thus permitting clients to override the default glyph used
by a font to represent some Unicode character.
|
|
@interface NSGlyphInfo : NSObject <NSCoding>
|
// Class Methods
|
+ (NSGlyphInfo *)glyphInfoWithCharacterIdentifier:(unsigned int)cid collection:(NSCharacterCollection)characterCollection baseString:(NSString *)theString; |
+ (NSGlyphInfo *)glyphInfoWithGlyph:(NSGlyph)glyph forFont:(NSFont *)font baseString:(NSString *)theString; |
+ (NSGlyphInfo *)glyphInfoWithGlyphName:(NSString *)glyphName forFont:(NSFont *)font baseString:(NSString *)theString; |
// Instance Methods
|
- (NSCharacterCollection)characterCollection;
|
- (unsigned int)characterIdentifier;
|
- (NSString *)glyphName;
|
// Methods Implementing NSCoding
|
- (void)encodeWithCoder:(NSCoder *)aCoder; |
- (id)initWithCoder:(NSCoder *)aDecoder; |
Read now
Unlock full access