<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontCopyTraits(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontCopyTraits"
  },
  "title" : "CTFontCopyTraits(_:)"
}
-->

# CTFontCopyTraits(_:)

Returns the traits dictionary of the given font.

```
func CTFontCopyTraits(_ font: CTFont) -> CFDictionary
```

## Parameters

`font`

The font reference.

## Return Value

A retained reference to the font traits dictionary. Individual traits can be accessed with the trait key constants.

## Discussion

See the Constants section of [`CTFontDescriptor`](/documentation/CoreText/CTFontDescriptor) for a definition of the font traits.

---

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)