---
title: "CTLineGetGlyphCount(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctlinegetglyphcount(_:)"
---

# CTLineGetGlyphCount(_:)

Returns the total glyph count for the line object.

## Declaration

```swift
func CTLineGetGlyphCount(_ line: CTLine) -> CFIndex
```

## Parameters

- `line`: The line whose glyph count is returned.

## Return Value

Return Value The total glyph count for the line passed in.

## Discussion

Discussion The total glyph count is equal to the sum of all of the glyphs in the glyph runs forming the line.

## See Also

### Getting Line Data

- [CTLineGetGlyphRuns(_:)](coretext/ctlinegetglyphruns(_:).md)
- [CTLineGetStringRange(_:)](coretext/ctlinegetstringrange(_:).md)
- [CTLineGetPenOffsetForFlush(_:_:_:)](coretext/ctlinegetpenoffsetforflush(_:_:_:).md)
