<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTRunGetGlyphs(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTRunGetGlyphs"
  },
  "title" : "CTRunGetGlyphs(_:_:_:)"
}
-->

# CTRunGetGlyphs(_:_:_:)

Copies a range of glyphs into a user-provided buffer.

```
func CTRunGetGlyphs(_ run: CTRun, _ range: CFRange, _ buffer: UnsafeMutablePointer<CGGlyph>)
```

## Parameters

`run`

The run from which to copy glyphs.

`range`

The range of glyphs to copy. If the length of the range is set to `0`, then the copy operation continues from the range’s start index to the end of the run.

`buffer`

The buffer the glyphs are copied to. The buffer must be allocated to at least the value specified by the range’s length.

---

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)