<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/kCTFontPriorityAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@kCTFontPriorityAttribute"
  },
  "title" : "kCTFontPriorityAttribute"
}
-->

# kCTFontPriorityAttribute

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

```
let kCTFontPriorityAttribute: CFString
```

## Discussion

The value associated with this key is an integer represented as a <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber> object containing one of the values enumerated in [`CTFontPriority`](/documentation/CoreText/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

[`CTFontPriority`](/documentation/CoreText/CTFontPriority)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)