---
title: "getGlyphWithGlyphName(name:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgfont/getglyphwithglyphname(name:)"
---

# getGlyphWithGlyphName(name:)

Returns the glyph for the glyph name associated with the specified font object.

## Declaration

```swift
func getGlyphWithGlyphName(name: CFString) -> CGGlyph
```

## Parameters

- `name`: The name of the desired glyph.

## Return Value

Return Value The named glyph, or 0 if the named glyph isn’t associated with the font.

## See Also

### Working with Glyphs

- [numberOfGlyphs](coregraphics/cgfont/numberofglyphs.md)
- [name(for:)](coregraphics/cgfont/name(for:).md)
- [getGlyphBBoxes(glyphs:count:bboxes:)](coregraphics/cgfont/getglyphbboxes(glyphs:count:bboxes:).md)
- [getGlyphAdvances(glyphs:count:advances:)](coregraphics/cgfont/getglyphadvances(glyphs:count:advances:).md)
- [CGGlyph](coregraphics/cgglyph.md)
- [kCGGlyphMax](coregraphics/kcgglyphmax.md)
- [CGFontIndex](coregraphics/cgfontindex.md)
- [kCGFontIndexMax](coregraphics/kcgfontindexmax.md)
- [kCGFontIndexInvalid](coregraphics/kcgfontindexinvalid.md)
