---
title: kCTFontAttributeName
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctfontattributename
---

# kCTFontAttributeName

The font of the text to which this attribute applies.

## Declaration

```swift
let kCTFontAttributeName: CFString
```

## Discussion

Discussion The value associated with this attribute must be a CTFont object. Default is Helvetica 12.

## See Also

### Constants

- [kCTCharacterShapeAttributeName](coretext/kctcharactershapeattributename.md)
- [kCTKernAttributeName](coretext/kctkernattributename.md)
- [kCTLigatureAttributeName](coretext/kctligatureattributename.md)
- [kCTForegroundColorAttributeName](coretext/kctforegroundcolorattributename.md)
- [kCTForegroundColorFromContextAttributeName](coretext/kctforegroundcolorfromcontextattributename.md)
- [kCTParagraphStyleAttributeName](coretext/kctparagraphstyleattributename.md)
- [kCTStrokeWidthAttributeName](coretext/kctstrokewidthattributename.md)
- [kCTStrokeColorAttributeName](coretext/kctstrokecolorattributename.md)
- [kCTSuperscriptAttributeName](coretext/kctsuperscriptattributename.md)
- [kCTUnderlineColorAttributeName](coretext/kctunderlinecolorattributename.md)
- [kCTUnderlineStyleAttributeName](coretext/kctunderlinestyleattributename.md)
- [kCTVerticalFormsAttributeName](coretext/kctverticalformsattributename.md)
- [kCTGlyphInfoAttributeName](coretext/kctglyphinfoattributename.md)
- [kCTRunDelegateAttributeName](coretext/kctrundelegateattributename.md)
- [kCTBaselineOffsetAttributeName](coretext/kctbaselineoffsetattributename.md)
