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

# CTFontGetGlyphWithName(_:_:)

Returns the glyph for the specified name.

```
func CTFontGetGlyphWithName(_ font: CTFont, _ glyphName: CFString) -> CGGlyph
```

## Parameters

`font`

The font reference.

`glyphName`

The glyph name as a `CFString` object.

## Return Value

The glyph value for the named glyph as a <doc://com.apple.documentation/documentation/CoreGraphics/CGGlyph> object, or if the glyph name is not recognized, the `.notdef` glyph index value.

## Discussion

The returned `CGGlyph` object can be used with any of the subsequent glyph data accessors or directly with Core Graphics.

---

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)