<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTLineGetTypographicBounds(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTLineGetTypographicBounds"
  },
  "title" : "CTLineGetTypographicBounds(_:_:_:_:)"
}
-->

# CTLineGetTypographicBounds(_:_:_:_:)

Calculates the typographic bounds of a line.

```
func CTLineGetTypographicBounds(_ line: CTLine, _ ascent: UnsafeMutablePointer<CGFloat>?, _ descent: UnsafeMutablePointer<CGFloat>?, _ leading: UnsafeMutablePointer<CGFloat>?) -> Double
```

## Parameters

`line`

The line whose typographic bounds are calculated.

`ascent`

On output, the ascent of the line. This parameter can be set to `NULL` if not needed.

`descent`

On output, the descent of the line. This parameter can be set to `NULL` if not needed.

`leading`

On output, the leading of the line. This parameter can be set to `NULL` if not needed.

## Return Value

The typographic width of the line. If the line is invalid, this function returns `0`.

---

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)