Contents

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?) -> NSRange

Parameters

  • 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