---
title: "setFontColor(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationchoicewidget/setfontcolor(_:)"
---

# setFontColor(_:)

Sets the font color used to display the text in the widget annotation.

## Declaration

```swift
func setFontColor(_ color: NSColor!)
```

## Parameters

- `color`: The color of the font to be used for the text in the widget annotation.

## See Also

### Managing Font and Background Color Characteristics

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