Fills the passed-in buffer with a sequence of glyphs
SDK
- macOS 10.0–10.11Deprecated
Framework
- App
Kit
Declaration
func getGlyphs(_ glyphArray: Unsafe Mutable Pointer<NSGlyph>?, range glyphRange: NSRange) -> Int
Parameters
glyphArray
On output, the displayable glyphs from
glyph
, null-terminated. Does not include in the result anyRange NSNull
or other glyphs that are not shown. The memory passed in should be large enough for at leastGlyph glyph
elements.Range .length+1 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 NSRange
if the range specified exceeds the bounds of the actual glyph range for the receiver. Performs glyph generation if needed.