Instance Method

glyphWithName:

Returns the named encoded glyph, or –1 if the receiver contains no such glyph.

Declaration

- (NSGlyph)glyphWithName:(NSString *)name;

Parameters

glyphName

The name of the glyph.

Return Value

The named encoded glyph.

Discussion

Returns –1 if the glyph named glyphName isn’t encoded.

Glyph names in fonts do not always accurately identify the glyph. The layout manager, an instance of NSLayoutManager, finds the correspondence between characters and glyphs. See Text Layout Programming Guide and NSLayoutManager for more information.