---
title: getWidth
framework: coretext
role: symbol
role_heading: Instance Property
path: coretext/ctrundelegatecallbacks/getwidth
---

# getWidth

The callback invoked to request the run delegate to determine and return the typographic width of glyphs in the run. This callback may be NULL, which is equivalent to a getWidth callback that always returns 0.

## Declaration

```swift
var getWidth: CTRunDelegateGetWidthCallback
```

## See Also

### Instance Properties

- [dealloc](coretext/ctrundelegatecallbacks/dealloc.md)
- [getAscent](coretext/ctrundelegatecallbacks/getascent.md)
- [getDescent](coretext/ctrundelegatecallbacks/getdescent.md)
- [version](coretext/ctrundelegatecallbacks/version.md)
