Contents

glyph(at:isValidIndex:)

Returns the glyph at a specified index, and optionally returns a flag indicating whether the requested index is valid.

Declaration

func glyph(at glyphIndex: Int, isValidIndex: UnsafeMutablePointer<ObjCBool>?) -> NSGlyph

Parameters

  • glyphIndex:

    The index of the glyph to be returned.

  • isValidIndex:

    If not NULL, on output, True if the requested index is in range; otherwise False.

Return Value

The glyph at the requested index, or NSNullGlyph if the requested index is out of the range {0, ``NSLayoutManager/numberOfGlyphs```}`.

Discussion

If noncontiguous layout is not enabled, this method causes generation of all glyphs up to and including glyphIndex.

See Also

Methods