---
title: CGGlyph
framework: coregraphics
role: symbol
role_heading: Type Alias
path: coregraphics/cgglyph
---

# CGGlyph

An index into the internal glyph table of a font.

## Declaration

```swift
typealias CGGlyph = CGFontIndex
```

## Discussion

Discussion When drawing text, you typically specify a sequence of characters. However, Core Graphics also allows you to use CGGlyph values to specify glyphs. In either case, Core Graphics renders the text using font data provided by the Apple Type Services (ATS) framework. You provide CGGlyph values to the functions showGlyphs(g:count:) and showGlyphsAtPoint(x:y:glyphs:count:). These functions display an array of glyphs at the current text position or at a position you specify, respectively.

## See Also

### Working with Glyphs

- [numberOfGlyphs](coregraphics/cgfont/numberofglyphs.md)
- [name(for:)](coregraphics/cgfont/name(for:).md)
- [getGlyphWithGlyphName(name:)](coregraphics/cgfont/getglyphwithglyphname(name:).md)
- [getGlyphBBoxes(glyphs:count:bboxes:)](coregraphics/cgfont/getglyphbboxes(glyphs:count:bboxes:).md)
- [getGlyphAdvances(glyphs:count:advances:)](coregraphics/cgfont/getglyphadvances(glyphs:count:advances:).md)
- [kCGGlyphMax](coregraphics/kcgglyphmax.md)
- [CGFontIndex](coregraphics/cgfontindex.md)
- [kCGFontIndexMax](coregraphics/kcgfontindexmax.md)
- [kCGFontIndexInvalid](coregraphics/kcgfontindexinvalid.md)
