Name
NSGlyphInfo — Mac OS X 10.2
Synopsis
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; |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.