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

# font()

Returns the font used to display the text in the widget annotation.

## Declaration

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

## Return Value

Return Value The font used to display the text in the widget annotation.

## See Also

### Managing Font and Background Color Characteristics

- [backgroundColor()](pdfkit/pdfannotationchoicewidget/backgroundcolor().md)
- [setBackgroundColor(_:)](pdfkit/pdfannotationchoicewidget/setbackgroundcolor(_:).md)
- [setFont(_:)](pdfkit/pdfannotationchoicewidget/setfont(_:).md)
- [fontColor()](pdfkit/pdfannotationchoicewidget/fontcolor().md)
- [setFontColor(_:)](pdfkit/pdfannotationchoicewidget/setfontcolor(_:).md)
