Returns the rectangle for the line fragment in which the given glyph is laid out and (optionally), by reference, the whole range of glyphs that are in that fragment.
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- 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.
The line fragment in which the given glyph is laid out.
This method causes glyph generation and layout for the line fragment containing the specified glyph, or if noncontiguous layout is not enabled, for all of the text up to and including that line fragment.
Line fragment rectangles are always in container coordinates.
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