ensureGlyphs(forGlyphRange:)
Forces the layout manager to generate glyphs for the specified glyph range if it hasn’t already.
Declaration
func ensureGlyphs(forGlyphRange glyphRange: NSRange)Parameters
- glyphRange:
The glyph range for which glyphs are generated.
Discussion
The layout manager reserves the right to perform glyph generation for larger ranges. If noncontiguous layout is disabled, then the affected range is always effectively extended to start at the beginning of the text.