---
title: fontSize
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/catextlayer/fontsize
---

# fontSize

The font size used to render the receiver’s text. Animatable.

## Declaration

```swift
var fontSize: CGFloat { get set }
```

## Discussion

Discussion Defaults to 36.0. The fontSize property is only used when the string property is not an NSAttributedString. note: Implicit animation of this property is only enabled in applications compiled for macOS 10.6 and later.

## See Also

### Text Visual Properties

- [font](quartzcore/catextlayer/font.md)
- [foregroundColor](quartzcore/catextlayer/foregroundcolor.md)
- [allowsFontSubpixelQuantization](quartzcore/catextlayer/allowsfontsubpixelquantization.md)
