DekGenius.com
[ Team LiB ] Previous Section Next Section

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.

figs/cocn_1537.gif

@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;

    [ Team LiB ] Previous Section Next Section