glyphRange(forCharacterRange:actualCharacterRange:)
Returns the range for the glyphs mapped to the characters of the text store in the specified range.
Declaration
func glyphRange(forCharacterRange charRange: NSRange, actualCharacterRange actualCharRange: NSRangePointer?) -> NSRangeParameters
- charRange:
The range of the characters whose glyph range is desired.
- actualCharRange:
On return, all characters mapped to those glyphs; may be
NULL.
Return Value
The range for the glyphs mapped to the characters of the text store in charRange.
Discussion
A subclass can override this method to interact with custom glyph storage.
See Also
Interfacing with Glyph Storage
characterRange(forGlyphRange:actualGlyphRange:)setAttachmentSize(_:forGlyphRange:)setBidiLevels(_:forGlyphRange:)setDrawsOutsideLineFragment(_:forGlyphRange:)setLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setLocation(_:withAdvancements:forStartOfGlyphRange:)setNotShownAttribute(_:forGlyphRange:)