Contents

getGlyphs(_:range:)

Fills the passed-in buffer with a sequence of glyphs.

Declaration

func getGlyphs(_ glyphArray: UnsafeMutablePointer<NSGlyph>?, range glyphRange: NSRange) -> Int

Parameters

  • glyphArray:

    On output, the displayable glyphs from glyphRange, null-terminated. Does not include in the result any Nsnullglyph or other glyphs that are not shown. The memory passed in should be large enough for at least glyphRange.length+1 elements.

  • glyphRange:

    The range of glyphs from which to return the displayable glyphs.

Return Value

The actual number of glyphs filled into the array is returned (not counting the null-termination).

Discussion

Raises an NSRangeException if the range specified exceeds the bounds of the actual glyph range for the receiver. Performs glyph generation if needed.

See Also

Methods