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