---
title: sourceTextScaling
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/documentreadingoptionkey/sourcetextscaling
---

# sourceTextScaling

The text-scaling mode to associate with the document’s content.

## Declaration

```swift
static let sourceTextScaling: 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 to associate with the document’s contents on disk.

## See Also

### Getting the font-scaling options

- [targetTextScaling](foundation/nsattributedstring/documentreadingoptionkey/targettextscaling.md)
