getGlyphs(_:range:)
Fills the passed-in buffer with a sequence of glyphs.
Declaration
func getGlyphs(_ glyphArray: UnsafeMutablePointer<NSGlyph>?, range glyphRange: NSRange) -> IntParameters
- 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 leastglyphRange.length+1elements. - 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
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:)glyph(at:isValidIndex:)replaceGlyph(at:withGlyph:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)deleteGlyphs(in:)setCharacterIndex(_:forGlyphAt:)intAttribute(_:forGlyphAt:)setIntAttribute(_:value:forGlyphAt:)