---
title: CTFontDescriptor
framework: coretext
role: symbol
role_heading: Class
path: coretext/ctfontdescriptor
---

# CTFontDescriptor

A font descriptor.

## Declaration

```swift
class CTFontDescriptor
```

## Overview

Overview A font descriptor is a dictionary of attributes (such as name, point size, and variation) that can completely specify a font. A font descriptor can be an incomplete specification, in which case the system chooses the most appropriate font to match the given attributes.

## Topics

### Creating Font Descriptors

- [CTFontDescriptorCreateWithNameAndSize(_:_:)](coretext/ctfontdescriptorcreatewithnameandsize(_:_:).md)
- [CTFontDescriptorCreateWithAttributes(_:)](coretext/ctfontdescriptorcreatewithattributes(_:).md)
- [CTFontDescriptorCreateCopyWithAttributes(_:_:)](coretext/ctfontdescriptorcreatecopywithattributes(_:_:).md)
- [CTFontDescriptorCreateCopyWithVariation(_:_:_:)](coretext/ctfontdescriptorcreatecopywithvariation(_:_:_:).md)
- [CTFontDescriptorCreateCopyWithFeature(_:_:_:)](coretext/ctfontdescriptorcreatecopywithfeature(_:_:_:).md)
- [CTFontDescriptorCreateCopyWithFamily(_:_:)](coretext/ctfontdescriptorcreatecopywithfamily(_:_:).md)
- [CTFontDescriptorCreateCopyWithSymbolicTraits(_:_:_:)](coretext/ctfontdescriptorcreatecopywithsymbolictraits(_:_:_:).md)
- [CTFontDescriptorCreateMatchingFontDescriptors(_:_:)](coretext/ctfontdescriptorcreatematchingfontdescriptors(_:_:).md)
- [CTFontDescriptorCreateMatchingFontDescriptor(_:_:)](coretext/ctfontdescriptorcreatematchingfontdescriptor(_:_:).md)

### Getting Attributes

- [CTFontDescriptorCopyAttributes(_:)](coretext/ctfontdescriptorcopyattributes(_:).md)
- [CTFontDescriptorCopyAttribute(_:_:)](coretext/ctfontdescriptorcopyattribute(_:_:).md)
- [CTFontDescriptorCopyLocalizedAttribute(_:_:_:)](coretext/ctfontdescriptorcopylocalizedattribute(_:_:_:).md)

### Getting the Font Descriptor Type

- [CTFontDescriptorGetTypeID()](coretext/ctfontdescriptorgettypeid().md)

### Accessing Font Attributes

- [Font Attributes](coretext/font-attributes.md)
- [CTFontOrientation](coretext/ctfontorientation.md)
- [CTFontFormat](coretext/ctfontformat.md)
- [CTFontPriority](coretext/ctfontpriority.md)

### Accessing Font Traits

- [Font Traits](coretext/font-traits.md)
- [Font Class Mask Shift Constants](coretext/font-class-mask-shift-constants.md)
- [CTFontSymbolicTraits](coretext/ctfontsymbolictraits.md)
- [CTFontStylisticClass](coretext/ctfontstylisticclass.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Opaque Types

- [CTFont](coretext/ctfont.md)
- [CTFontCollection](coretext/ctfontcollection.md)
- [CTFrame](coretext/ctframe.md)
- [CTFramesetter](coretext/ctframesetter.md)
- [CTGlyphInfo](coretext/ctglyphinfo.md)
- [CTLine](coretext/ctline.md)
- [CTParagraphStyle](coretext/ctparagraphstyle.md)
- [CTRun](coretext/ctrun.md)
- [CTRunDelegate](coretext/ctrundelegate.md)
- [CTTextTab](coretext/cttexttab.md)
- [CTTypesetter](coretext/cttypesetter.md)
