CTGlyphInfo

Override a font's specified mapping from Unicode to the glyph ID.

Topics

Getting the GlyphInfo Type

func CTGlyphInfoGetTypeID() -> CFTypeID

Returns the Core Foundation type identifier of the glyph info object

Creating GlyphInfo Objects

func CTGlyphInfoCreateWithGlyphName(CFString, CTFont, CFString) -> CTGlyphInfo?

Creates an immutable glyph info object with a glyph name.

func CTGlyphInfoCreateWithGlyph(CGGlyph, CTFont, CFString) -> CTGlyphInfo?

Creates an immutable glyph info object with a glyph index.

Getting GlyphInfo Data

func CTGlyphInfoGetGlyphName(CTGlyphInfo) -> CFString?

Gets the glyph name for a glyph info object if that object exists.

func CTGlyphInfoGetCharacterIdentifier(CTGlyphInfo) -> CGFontIndex

Gets the character identifier for a glyph info object.

func CTGlyphInfoGetCharacterCollection(CTGlyphInfo) -> CTCharacterCollection

Gets the character collection for a glyph info object.

Data Types

class CTGlyphInfo

A reference to a glyph info object.

Constants

enum CTCharacterCollection

These constants specify character collections.

See Also

Opaque Types

CTFont

A font object.

CTFramesetter

Generate text frames.

CTLine

A line of text.

CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

CTTextTab

A tab in a paragraph style, storing an alignment type and location.

CTTypesetter

A typesetter which performs line layout.