<!--
{
  "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/CTRunGetTypographicBounds(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTRunGetTypographicBounds"
  },
  "title" : "CTRunGetTypographicBounds(_:_:_:_:_:)"
}
-->

# CTRunGetTypographicBounds(_:_:_:_:_:)

Gets the typographic bounds of the run.

```
func CTRunGetTypographicBounds(_ run: CTRun, _ range: CFRange, _ ascent: UnsafeMutablePointer<CGFloat>?, _ descent: UnsafeMutablePointer<CGFloat>?, _ leading: UnsafeMutablePointer<CGFloat>?) -> Double
```

## Parameters

`run`

The run for which to calculate the typographic bounds.

`range`

The portion of the run to measure. If the length of the range is set to `0`, then the measure operation continues from the range’s start index to the end of the run.

`ascent`

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

`descent`

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

`leading`

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

## Return Value

The typographic width of the run, or if `run` or `range` is invalid, `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)