Returns the container in which the given glyph is laid out and (optionally) by reference the whole range of glyphs that are in that container.
- iOS 9.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
Index of a glyph in the returned container.
NULL, on output, points to the whole range of glyphs that are in the returned container.
true, glyph generation and layout are not performed, so this option should not be used unless layout is known to be complete for the range in question, or unless noncontiguous layout is enabled; if
false, both are performed as needed.
The text container in which the glyph at
glyph is laid out.
This method is primarily for use from within
NSTypesetter, after layout is complete for the range in question, but before the layout manager's call to
NSTypesetter has returned. In that case glyph and layout holes have not yet been recalculated, so the layout manager does not yet know that layout is complete for that range, and this variant must be used.
Overriding this method is not recommended. Any changes to the returned glyph range should be done at the typesetter level.