Instance Method

isValidGlyphIndex(_:)

Indicates whether the specified index refers to a valid glyph, otherwise false.

Declaration

func isValidGlyphIndex(_ glyphIndex: Int) -> Bool

Parameters

glyphIndex

The index of a glyph in the receiver.

Return Value

true if the specified glyphIndex refers to a valid glyph, otherwise false.

See Also

Accessing Glyphs

func cgGlyph(at: Int) -> CGGlyph

Returns the glyph at the specified index.

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

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

func characterIndexForGlyph(at: Int) -> Int

Returns the index in the text storage for the first character associated with the given glyph.

func glyphIndexForCharacter(at: Int) -> Int

Returns the index of the first glyph associated with the character at the specified index.

var numberOfGlyphs: Int

The number of glyphs in the receiver.

func propertyForGlyph(at: Int) -> NSLayoutManager.GlyphProperty

Returns the glyph property associated with the glyph at the specified index.