Returns the glyph at glyph
.
Deprecated
Use cg
instead.
SDKs
- iOS 7.0–9.0Deprecated
- macOS 10.0–10.11Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–9.0Deprecated
Frameworks
- UIKit
- App
Kit
Declaration
Parameters
glyphIndex
The index of a glyph in the receiver. This value must not exceed the bounds of the receiver’s glyph array.
Return Value
The glyph at glyph
.
Discussion
Raises an NSRange
if glyph
is out of bounds.
Performs glyph generation if needed. To avoid an exception with glyph(at:)
you must first check the glyph index against the number of glyphs, which requires generating all glyphs. Another method, glyph(at:
, generates glyphs only up to the one requested, so using it can be more efficient.