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

# setFontColor(_:)

Sets the font color used in the text field of the annotation.

## Declaration

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

## Parameters

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

## See Also

### Related Documentation

- [PDFAnnotationFreeText](pdfkit/pdfannotationfreetext.md)

### Managing Font and Font Color

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