Contents

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

Parameters

  • 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