Returns the index of the first glyph associated with the character at the specified index.
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The index of the character for which to return the associated glyph.
The index of the first glyph associated with the character at the specified index.
If noncontiguous layout is not enabled, this method causes generation of all glyphs up to and including those associated with the specified character. This method accepts an index beyond the last character, returning an index extrapolated from the last actual character index.
In many cases it’s better to use the range-mapping methods,
glyph, which provide more comprehensive information.