Returns the line fragment rectangle containing the glyph at the given glyph index.
- iOS 9.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The glyph for which to return the line fragment rectangle.
NULL, on output, the range for all glyphs in the line fragment.
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 line fragment in which the given 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. If the the line fragment rectangle needs to be modified, that should be done at the typesetter level or by calling