appendGlyphs(_:count:in:)
Appends the outlines of the specified glyphs to the path.
Declaration
func appendGlyphs(_ glyphs: UnsafeMutablePointer<NSGlyph>, count: Int, in font: NSFont)Parameters
- glyphs:
A C-style array of
NSGlyphdata types to add to the path. - count:
The number of glyphs in the
glyphsparameter. - font:
The font in which the glyphs are encoded.
Discussion
If the glyphs are not encoded in the font specified by the fontObj parameter—that is, the font does not have an entry for one of the specified glyphs—then no path is appended to the receiver.
You must set the path’s current point (using the move(to:) method or through the creation of a preceding line or curve segment) before you invoke this method. If the path is empty, this method raises an genericException exception.
See Also
Related Documentation
Appending Common Shapes to a Path
append(_:)appendPoints(_:count:)appendOval(in:)appendArc(from:to:radius:)appendArc(withCenter:radius:startAngle:endAngle:)appendArc(withCenter:radius:startAngle:endAngle:clockwise:)appendRect(_:)appendRoundedRect(_:xRadius:yRadius:)append(withCGGlyph:in:)append(withCGGlyphs:count:in:)appendGlyph(_:in:)appendPackedGlyphs(_:)