Instance Method

CGGlyphAtIndex:

Returns the glyph at the specified index.

Declaration

- (CGGlyph)CGGlyphAtIndex:(NSUInteger)glyphIndex;

Parameters

glyphIndex

The index of the glyph that you want. If the index is out of range, this method raises an exception with the error NSRangeException.

Return Value

The glyph at the specified index.

Discussion

Calling this method generates all of the glyphs (as needed) up to and including the glyph at the specified index.

See Also

Accessing Glyphs

- getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels:

Fills a passed-in buffer with a sequence of glyphs.

- CGGlyphAtIndex:isValidIndex:

Returns the glyph at the specified index and information about whether the glyph index is valid.

- setGlyphs:properties:characterIndexes:font:forGlyphRange:

Stores the initial glyphs and glyph properties for a character range.

- characterIndexForGlyphAtIndex:

Returns the index in the text storage for the first character associated with the given glyph.

- glyphIndexForCharacterAtIndex:

Returns the index of the first glyph associated with the character at the specified index.

- isValidGlyphIndex:

Indicates whether the specified index refers to a valid glyph, otherwise NO.

numberOfGlyphs

The number of glyphs in the receiver.

- propertyForGlyphAtIndex:

Returns the glyph property associated with the glyph at the specified index.