Instance Method

getGlyphWithGlyphName(name:)

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

Declaration

func getGlyphWithGlyphName(name: CFString) -> CGGlyph

Parameters

name

The name of the desired glyph.

Return Value

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

See Also

Working with Glyphs

var numberOfGlyphs: Int

Returns the number of glyphs in a font.

func name(for: CGGlyph) -> CFString?

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

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.