---
title: "CTGlyphInfoGetCharacterCollection(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctglyphinfogetcharactercollection(_:)"
---

# CTGlyphInfoGetCharacterCollection(_:)

Gets the character collection for a glyph info object.

## Declaration

```swift
func CTGlyphInfoGetCharacterCollection(_ glyphInfo: CTGlyphInfo) -> CTCharacterCollection
```

## Parameters

- `glyphInfo`: The glyph info from which to get the character collection. May not be NULL.

## Return Value

Return Value The character collection of the given glyph info object.

## Discussion

Discussion If the glyph info object was created with a glyph name or a glyph index, its character collection is kCTIdentityMappingCharacterCollection.

## See Also

### Getting GlyphInfo Data

- [CTGlyphInfoGetGlyphName(_:)](coretext/ctglyphinfogetglyphname(_:).md)
- [CTGlyphInfoGetCharacterIdentifier(_:)](coretext/ctglyphinfogetcharacteridentifier(_:).md)
- [CTGlyphInfoGetGlyph(_:)](coretext/ctglyphinfogetglyph(_:).md)
