<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTLineBoundsOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@E@CTLineBoundsOptions"
  },
  "title" : "CTLineBoundsOptions"
}
-->

# CTLineBoundsOptions

Options for getting the bounds of a line of text.

```
struct CTLineBoundsOptions
```

## Overview

Passing `0` (no options) returns the typographic bounds, including typographic leading and shifts.

## Topics

### Line Bounds Options

[`excludeTypographicLeading`](/documentation/CoreText/CTLineBoundsOptions/excludeTypographicLeading)

An option to exclude typographic leading.

[`excludeTypographicShifts`](/documentation/CoreText/CTLineBoundsOptions/excludeTypographicShifts)

An option to ignore cross-stream shifts due to positioning, such as kerning or baseline alignment.

[`includeLanguageExtents`](/documentation/CoreText/CTLineBoundsOptions/includeLanguageExtents)

An option to include additional space based on common glyph sequences for various languages.

[`useGlyphPathBounds`](/documentation/CoreText/CTLineBoundsOptions/useGlyphPathBounds)

An option to use glyph path bounds rather than the default typographic bounds.

[`useHangingPunctuation`](/documentation/CoreText/CTLineBoundsOptions/useHangingPunctuation)

An option to enable hanging punctuation.

[`useOpticalBounds`](/documentation/CoreText/CTLineBoundsOptions/useOpticalBounds)

An option to use optical bounds.

### Initializers

[`init(rawValue:)`](/documentation/CoreText/CTLineBoundsOptions/init(rawValue:))

Creates a line bound options enumeration with the specified raw value.



---

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)