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

# name(for:)

Returns the glyph name of the specified glyph in the specified font.

## Declaration

```swift
func name(for glyph: CGGlyph) -> CFString?
```

## Parameters

- `glyph`: The glyph whose name is desired.

## Return Value

Return Value The name of the specified glyph, or nil if the glyph isn’t associated with the font object.

## See Also

### Working with Glyphs

- [numberOfGlyphs](coregraphics/cgfont/numberofglyphs.md)
- [getGlyphWithGlyphName(name:)](coregraphics/cgfont/getglyphwithglyphname(name:).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)
