<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBaselineOffsetAttributeName",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSBaselineOffsetAttributeName"
  },
  "title" : "NSBaselineOffsetAttributeName"
}
-->

# NSBaselineOffsetAttributeName

The vertical offset for the position of the text.

```
extern NSAttributedStringKey NSBaselineOffsetAttributeName;
```

## Overview

The value of this attribute is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a floating point value indicating the character’s offset from the baseline, in points. The default value is `0`.

> Important: This attribute is different from <doc://com.apple.documentation/documentation/CoreText/kCTLanguageAttributeName>; you need to use <doc://com.apple.documentation/documentation/CoreText/kCTLanguageAttributeName> if you are writing code for <doc://com.apple.documentation/documentation/CoreText>.

---

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)