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

# setFontColor(_:)

Sets the font color used in the control’s label.

## Declaration

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

## Parameters

- `color`: The desired font color of the control’s label.

## See Also

### Related Documentation

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)

### Getting and Setting the Control Label Font Attributes

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