---
title: "setFont(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationbuttonwidget/setfont(_:)"
---

# setFont(_:)

Sets the font of the control’s label.

## Declaration

```swift
func setFont(_ font: NSFont!)
```

## Parameters

- `font`: The desired font for the control’s label.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)

### Getting and Setting the Control Label Font Attributes

- [font()](pdfkit/pdfannotationbuttonwidget/font().md)
- [fontColor()](pdfkit/pdfannotationbuttonwidget/fontcolor().md)
- [setFontColor(_:)](pdfkit/pdfannotationbuttonwidget/setfontcolor(_:).md)
