Instance Method

propertyForGlyph(at:)

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

Declaration

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

Parameters

glyphIndex

The glyph whose glyph property is returned.

Return Value

The glyph property associated with the specified glyph. NSLayoutManager.GlyphProperty lists the values that can be returned.

Discussion

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

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.

func isValidGlyphIndex(Int) -> Bool

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

var numberOfGlyphs: Int

The number of glyphs in the receiver.