Instance Method

name(for:)

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

Declaration

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

Parameters

glyph

The glyph whose name is desired.

Return Value

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

See Also

Working with Glyphs

var numberOfGlyphs: Int

Returns the number of glyphs in a font.

func getGlyphWithGlyphName(name: CFString) -> CGGlyph

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

typealias CGGlyph

An index into the internal glyph table of a font.

let kCGGlyphMax: CGFontIndex

The maximum allowed value of a CGGlyph.

typealias CGFontIndex

An index into a font table.

let kCGFontIndexMax: CGFontIndex

The maximum allowed value of a CGFontIndex.

let kCGFontIndexInvalid: CGFontIndex

A value representing an invalid CGFontIndex.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software