setLayoutRect(_:for:glyphRange:)
Sets the layout rectangle that encloses the specified text block and glyph range.
Declaration
func setLayoutRect(_ rect: NSRect, for block: NSTextBlock, glyphRange: NSRange)Parameters
- rect:
The layout rectangle to set.
- block:
The text block whose layout rectangle is set.
- glyphRange:
The range of glyphs in the text block.
Discussion
This method causes glyph generation but not layout. Block layout rectangles and bounds rectangles are always in container coordinates.