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>?) -> NSGlyphParameters
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
showCGGlyphs(_:positions:count:font:matrix:attributes:in:)invalidateGlyphs(onLayoutInvalidationForGlyphRange:)invalidateLayout(forCharacterRange:isSoft:actualCharacterRange:)textStorage(_:edited:range:changeInLength:invalidatedRange:)insertGlyph(_:atGlyphIndex:characterIndex:)insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)glyph(at:)replaceGlyph(at:withGlyph:)getGlyphs(_:range:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)deleteGlyphs(in:)setCharacterIndex(_:forGlyphAt:)intAttribute(_:forGlyphAt:)setIntAttribute(_:value:forGlyphAt:)