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

# font()

Returns the font used for the annotation’s text field.

## Declaration

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

## Return Value

Return Value The font used for text in the annotation’s text field.

## See Also

### Managing the Font and Font Color

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