---
title: "CTFontGetSymbolicTraits(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontgetsymbolictraits(_:)"
---

# CTFontGetSymbolicTraits(_:)

Returns the symbolic traits of the given font.

## Declaration

```swift
func CTFontGetSymbolicTraits(_ font: CTFont) -> CTFontSymbolicTraits
```

## Parameters

- `font`: The font reference.

## Return Value

Return Value The symbolic traits of the font. This is equivalent to the kCTFontSymbolicTrait value of the traits dictionary.

## Discussion

Discussion See the Constants section of CTFontDescriptor for a definition of the font traits.

## See Also

### Getting Font Data

- [CTFontCopyFontDescriptor(_:)](coretext/ctfontcopyfontdescriptor(_:).md)
- [CTFontCopyAttribute(_:_:)](coretext/ctfontcopyattribute(_:_:).md)
- [CTFontGetSize(_:)](coretext/ctfontgetsize(_:).md)
- [CTFontGetMatrix(_:)](coretext/ctfontgetmatrix(_:).md)
- [CTFontCopyTraits(_:)](coretext/ctfontcopytraits(_:).md)
- [CTFontCopyDefaultCascadeListForLanguages(_:_:)](coretext/ctfontcopydefaultcascadelistforlanguages(_:_:).md)
