An index into the internal glyph table of a font.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
typealias CGGlyph = CGFont Index
Discussion
When drawing text, you typically specify a sequence of characters. However, Core Graphics also allows you to use CGGlyph
values to specify glyphs. In either case, Core Graphics renders the text using font data provided by the Apple Type Services (ATS) framework.
You provide CGGlyph
values to the functions show
and show
. These functions display an array of glyphs at the current text position or at a position you specify, respectively.