<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/defaultBaselineOffset(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)defaultBaselineOffsetForFont:"
  },
  "title" : "defaultBaselineOffset(for:)"
}
-->

# defaultBaselineOffset(for:)

Returns the default baseline offset that the layout manager’s typesetter uses for the specified font.

```
func defaultBaselineOffset(for theFont: NSFont) -> CGFloat
```

## Parameters

`theFont`

The font for which to return the default baseline offset.

## Return Value

The default baseline offset for a line of text drawn using `theFont`.

## Discussion

The value returned may vary according to the layout manager’s typesetter behavior.

---

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)