---
title: "appendGlyph(_:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbezierpath/appendglyph(_:in:)"
---

# appendGlyph(_:in:)

Appends an outline of the specified glyph to the path.

## Declaration

```swift
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

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

- [drawPackedGlyphs(_:at:)](appkit/nsbezierpath/drawpackedglyphs(_:at:).md)

### Appending Common Shapes to a Path

- [append(_:)](appkit/nsbezierpath/append(_:).md)
- [appendPoints(_:count:)](appkit/nsbezierpath/appendpoints(_:count:).md)
- [appendOval(in:)](appkit/nsbezierpath/appendoval(in:).md)
- [appendArc(from:to:radius:)](appkit/nsbezierpath/appendarc(from:to:radius:).md)
- [appendArc(withCenter:radius:startAngle:endAngle:)](appkit/nsbezierpath/appendarc(withcenter:radius:startangle:endangle:).md)
- [appendArc(withCenter:radius:startAngle:endAngle:clockwise:)](appkit/nsbezierpath/appendarc(withcenter:radius:startangle:endangle:clockwise:).md)
- [appendRect(_:)](appkit/nsbezierpath/appendrect(_:).md)
- [appendRoundedRect(_:xRadius:yRadius:)](appkit/nsbezierpath/appendroundedrect(_:xradius:yradius:).md)
- [append(withCGGlyph:in:)](appkit/nsbezierpath/append(withcgglyph:in:).md)
- [append(withCGGlyphs:count:in:)](appkit/nsbezierpath/append(withcgglyphs:count:in:).md)
- [appendGlyphs(_:count:in:)](appkit/nsbezierpath/appendglyphs(_:count:in:).md)
- [appendPackedGlyphs(_:)](appkit/nsbezierpath/appendpackedglyphs(_:).md)
