---
title: "CTRunGetGlyphCount(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctrungetglyphcount(_:)"
---

# CTRunGetGlyphCount(_:)

Gets the glyph count for the run.

## Declaration

```swift
func CTRunGetGlyphCount(_ run: CTRun) -> CFIndex
```

## Parameters

- `run`: The run for which to return the glyph count.

## Return Value

Return Value The number of glyphs that the run contains, or if there are no glyphs in this run, a value of 0.

## See Also

### Getting Glyph Run Data

- [CTRunGetAttributes(_:)](coretext/ctrungetattributes(_:).md)
- [CTRunGetStatus(_:)](coretext/ctrungetstatus(_:).md)
- [CTRunGetGlyphsPtr(_:)](coretext/ctrungetglyphsptr(_:).md)
- [CTRunGetGlyphs(_:_:_:)](coretext/ctrungetglyphs(_:_:_:).md)
- [CTRunGetPositionsPtr(_:)](coretext/ctrungetpositionsptr(_:).md)
- [CTRunGetPositions(_:_:_:)](coretext/ctrungetpositions(_:_:_:).md)
- [CTRunGetAdvancesPtr(_:)](coretext/ctrungetadvancesptr(_:).md)
- [CTRunGetAdvances(_:_:_:)](coretext/ctrungetadvances(_:_:_:).md)
- [CTRunGetStringIndicesPtr(_:)](coretext/ctrungetstringindicesptr(_:).md)
- [CTRunGetStringIndices(_:_:_:)](coretext/ctrungetstringindices(_:_:_:).md)
- [CTRunGetStringRange(_:)](coretext/ctrungetstringrange(_:).md)
