ensureGlyphs(forCharacterRange:)
Forces the layout manager to generate glyphs for the specified character range if it hasn’t already.
Declaration
func ensureGlyphs(forCharacterRange charRange: NSRange)Parameters
- charRange:
The character 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.