Returns the usage rectangle for the line fragment and (optionally) returns the whole range of glyphs that are in that fragment.
- iOS 9.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The glyph for which to return the line fragment used 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 used rectangle for 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, up to and including that line fragment.
Line fragment used rectangles are always in container coordinates.
Overriding this method is not recommended. If the the line fragment used rectangle needs to be modified, that should be done at the typesetter level or by calling