---
title: font()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfannotationbuttonwidget/font()
---

# font()

Returns the font used in the control’s label.

## Declaration

```swift
func font() -> NSFont!
```

## Return Value

Return Value The font used in the control’s label.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)

### Getting and Setting the Control Label Font Attributes

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