<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSSourceTextScalingDocumentAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@NSSourceTextScalingDocumentAttribute"
  },
  "title" : "NSSourceTextScalingDocumentAttribute"
}
-->

# NSSourceTextScalingDocumentAttribute

The text-scaling mode you used when creating the text.

```
extern NSAttributedStringDocumentAttributeKey const NSSourceTextScalingDocumentAttribute;
```

## Discussion

The value of this property is one of the options of the [`NSTextScalingType`](/documentation/UIKit/NSTextScalingType) type. Some platforms scale fonts to improve their appearance. Include this attribute to specify the original text-scaling mode you used to create the text.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)