layoutRect(for:glyphRange:)
Returns the rectangle for the layout of the specified text block and glyph range.
Declaration
func layoutRect(for block: NSTextBlock, glyphRange: NSRange) -> NSRectReturn Value
The layout rectangle, or NSZeroRect if no rectangle has been set for the specified block since the last invalidation.
Discussion
This method causes glyph generation but not layout. Block layout rectangles and bounds rectangles are always in container coordinates.