<!--
{
  "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/CTFontCreatePathForGlyph(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontCreatePathForGlyph"
  },
  "title" : "CTFontCreatePathForGlyph(_:_:_:)"
}
-->

# CTFontCreatePathForGlyph(_:_:_:)

Creates a path for the specified glyph.

```
func CTFontCreatePathForGlyph(_ font: CTFont, _ glyph: CGGlyph, _ matrix: UnsafePointer<CGAffineTransform>?) -> CGPath?
```

## Parameters

`font`

The font reference.

`glyph`

The glyph.

`matrix`

An affine transform applied to the path. Can be `NULL`. If `NULL`, <doc://com.apple.documentation/documentation/CoreGraphics/CGAffineTransformIdentity> is used.

## Return Value

A CGPath object containing the glyph outlines, `NULL` on error. Must be released by caller.

## Discussion

Creates a path from the outlines of the glyph for the specified font. The path reflects the font point size, matrix, and transform parameter, applied in that order. The transform parameter is most commonly be used to provide a translation to the desired glyph origin.

---

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)