Contents

appendGlyph(_:in:)

Appends an outline of the specified glyph to the path.

Declaration

func appendGlyph(_ glyph: NSGlyph, in font: NSFont)

Parameters

  • glyph:

    The glyph to add to the path.

  • font:

    The font in which the glyph is encoded.

Discussion

If the glyph is not encoded in the font specified by the fontObj parameter—that is, the font does not have an entry for the specified glyph—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