---
title: targetTextScaling
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/documentreadingoptionkey/targettextscaling
---

# targetTextScaling

The text scaling mode to use after reading the text from disk.

## Declaration

```swift
static let targetTextScaling: NSAttributedString.DocumentReadingOptionKey
```

## Discussion

Discussion The value of this property is one of the options of the NSTextScalingType type. Some platforms scale fonts to improve their appearance. Include this option to specify the text-scaling mode you want to use for the document you read.

## See Also

### Getting the font-scaling options

- [sourceTextScaling](foundation/nsattributedstring/documentreadingoptionkey/sourcetextscaling.md)
