<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/cgGlyph(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)CGGlyphAtIndex:"
  },
  "title" : "cgGlyph(at:)"
}
-->

# cgGlyph(at:)

Returns the glyph at the specified index.

```
func cgGlyph(at glyphIndex: Int) -> CGGlyph
```

## Parameters

`glyphIndex`

The index of the glyph that you want. If the index is out of range, this method raises an exception with the error <doc://com.apple.documentation/documentation/Foundation/NSExceptionName/rangeException>.

## Return Value

The glyph at the specified index.

## Discussion

Calling this method generates all of the glyphs (as needed) up to and including the glyph at the specified index.

---

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)