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

# CGFontIndex

An index into a font table.

```
typealias CGFontIndex = UInt16
```

## Discussion

This integer type provides an additional way to specify a glyph identifier. [`CGFontIndex`](/documentation/CoreGraphics/CGFontIndex) is equivalent to [`CGGlyph`](/documentation/CoreGraphics/CGGlyph), and you can use constants of either type interchangeably.

---

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)