<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/kCTBaselineOffsetAttributeName",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@kCTBaselineOffsetAttributeName"
  },
  "title" : "kCTBaselineOffsetAttributeName"
}
-->

# kCTBaselineOffsetAttributeName

Vertical offset for text position.

```
let kCTBaselineOffsetAttributeName: CFString
```

## Discussion

The value of this attribute must be a <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber> float. The default is standard positioning, following the baselines of the fonts used.

The baseline offset attribute indicates how many points the characters should be shifted perpendicular to their baseline. For horizontal text, a positive baseline value indicates a shift above the text baseline, and a negative baseline value indicates a shift below the text baseline. For vertical text, a positive baseline value indicates a shift to the right of the text baseline, and a negative baseline value indicates a shift to the left of the text baseline. If this value is set to `0.0`, no baseline shift will be performed.

> Important: This attribute is different from <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/baselineOffset>. If you are writing code for <doc://com.apple.documentation/documentation/AppKit/textkit>, you need to use <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/baselineOffset>.

## See Also

  <doc://com.apple.documentation/documentation/UIKit/NSBaselineOffsetAttributeName>



---

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)