---
title: kCTFontPriorityAttribute
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctfontpriorityattribute
---

# kCTFontPriorityAttribute

The font priority used by font descriptors when resolving duplicates and sorting match results.

## Declaration

```swift
let kCTFontPriorityAttribute: CFString
```

## Discussion

Discussion The value associated with this key is an integer represented as a CFNumber object containing one of the values enumerated in CTFontPriority. The higher the value, the higher the priority of the font. Only registered fonts have a priority. Unregistered font descriptors return NULL.

## See Also

### Related Documentation

- [CTFontPriority](coretext/ctfontpriority.md)

### Font Attribute Keys

- [kCTFontURLAttribute](coretext/kctfonturlattribute.md)
- [kCTFontNameAttribute](coretext/kctfontnameattribute.md)
- [kCTFontDisplayNameAttribute](coretext/kctfontdisplaynameattribute.md)
- [kCTFontFamilyNameAttribute](coretext/kctfontfamilynameattribute.md)
- [kCTFontStyleNameAttribute](coretext/kctfontstylenameattribute.md)
- [kCTFontTraitsAttribute](coretext/kctfonttraitsattribute.md)
- [kCTFontVariationAttribute](coretext/kctfontvariationattribute.md)
- [kCTFontSizeAttribute](coretext/kctfontsizeattribute.md)
- [kCTFontMatrixAttribute](coretext/kctfontmatrixattribute.md)
- [kCTFontCascadeListAttribute](coretext/kctfontcascadelistattribute.md)
- [kCTFontCharacterSetAttribute](coretext/kctfontcharactersetattribute.md)
- [kCTFontLanguagesAttribute](coretext/kctfontlanguagesattribute.md)
- [kCTFontBaselineAdjustAttribute](coretext/kctfontbaselineadjustattribute.md)
- [kCTFontMacintoshEncodingsAttribute](coretext/kctfontmacintoshencodingsattribute.md)
- [kCTFontFeaturesAttribute](coretext/kctfontfeaturesattribute.md)
