Enumerates line fragments intersecting with the given glyph range.
- iOS 7.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The glyph range for which to return line fragment rectangles.
The block to apply to the glyph range. The block has five arguments:
The current line fragment rectangle.
The portion of the line fragment rectangle that actually contains glyphs or other marks that are drawn (including the text container’s line fragment padding).
The text container in which the glyphs are laid out.
The range of glyphs laid out in the current line fragment.
A reference to a Boolean value. The block can set the value to
trueto stop further processing of the array. The stop argument is an out-only argument. You should only set this Boolean to
truewithin the block.
This method causes glyph generation and layout for the line fragment containing the glyphs in the specified range, 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.