CTFontGetGlyphWithName(_:_:)
Returns the glyph for the specified name.
Declaration
func CTFontGetGlyphWithName(_ font: CTFont, _ glyphName: CFString) -> CGGlyphParameters
- font:
The font reference.
- glyphName:
The glyph name as a
CFStringobject.
Return Value
The glyph value for the named glyph as a 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.