---
title: "CTFontCopyCharacterSet(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcopycharacterset(_:)"
---

# CTFontCopyCharacterSet(_:)

Returns the Unicode character set of the font.

## Declaration

```swift
func CTFontCopyCharacterSet(_ font: CTFont) -> CFCharacterSet
```

## Parameters

- `font`: The font reference.

## Return Value

Return Value A retained reference to the font’s character set.

## Discussion

Discussion The returned character set covers the nominal referenced by the font’s Unicode 'cmap’ table.

## See Also

### Working With Encoding

- [CTFontGetStringEncoding(_:)](coretext/ctfontgetstringencoding(_:).md)
- [CTFontCopySupportedLanguages(_:)](coretext/ctfontcopysupportedlanguages(_:).md)
