Contents

cgGlyph(at:isValidIndex:)

Returns the glyph at the specified index along with information about whether the glyph index is valid.

Declaration

func cgGlyph(at glyphIndex: Int, isValidIndex: UnsafeMutablePointer<ObjCBool>?) -> CGGlyph

Parameters

  • glyphIndex:

    The index of the glyph that you want.

  • isValidIndex:

    An optional Boolean variable. On return, the variable is set to True if the glyph index is valid or False if it is not.

Return Value

The glyph at the specified index or kCGFontIndexInvalid if the index is out of range.

Discussion

If noncontiguous layout is disabled, calling this method generates all glyphs up to and including the one at glyphIndex.

See Also

Accessing glyphs