<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGGlyph",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@T@CGGlyph"
  },
  "title" : "CGGlyph"
}
-->

# CGGlyph

An index into the internal glyph table of a font.

```
typealias CGGlyph = CGFontIndex
```

## Discussion

When drawing text, you typically specify a sequence of characters. However, Core Graphics also allows you to use [`CGGlyph`](/documentation/CoreGraphics/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`](/documentation/CoreGraphics/CGGlyph) values to the functions [`showGlyphs(g:count:)`](/documentation/CoreGraphics/CGContext/showGlyphs(g:count:)) and [`showGlyphsAtPoint(x:y:glyphs:count:)`](/documentation/CoreGraphics/CGContext/showGlyphsAtPoint(x:y:glyphs:count:)). These functions display an array of glyphs at the current text position or at a position you specify, respectively.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)