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

# setFontColor(_:)

Sets the font color used for the annotation’s text field.

## Declaration

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

## Parameters

- `color`: The font color to be used in the annotation’s text field.

## See Also

### Related Documentation

- [PDFAnnotationTextWidget](pdfkit/pdfannotationtextwidget.md)

### Managing the Font and Font Color

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