<!--
{
  "availability" : [
    "iOS: 2.0.0 - 7.0.0",
    "iPadOS: 2.0.0 - 7.0.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGContext/showGlyphsWithAdvances(glyphs:advances:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGContextShowGlyphsWithAdvances"
  },
  "title" : "showGlyphsWithAdvances(glyphs:advances:count:)"
}
-->

# showGlyphsWithAdvances(glyphs:advances:count:)

Draws an array of glyphs with varying offsets.

```
func showGlyphsWithAdvances(glyphs: UnsafePointer<CGGlyph>?, advances: UnsafePointer<CGSize>?, count: Int)
```

## Parameters

`glyphs`

An array of glyphs.

`advances`

An array of offset values associated with each glyph in the array. Each value specifies the offset from the previous glyph’s origin to the origin of the corresponding glyph. Offsets are specified in user space.

`count`

The number of glyphs in the specified array.

## Discussion

This function draws an array of glyphs at the current point specified by the text matrix.

## See Also

[`showText(string:length:)`](/documentation/CoreGraphics/CGContext/showText(string:length:))

Displays a character array at the current text position, a point specified by the current text matrix.

[`showTextAtPoint(x:y:string:length:)`](/documentation/CoreGraphics/CGContext/showTextAtPoint(x:y:string:length:))

Displays a character string at a position you specify.



---

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)