Structure

CGFontRef

A set of character glyphs and layout information for drawing text.

Declaration

typedef struct CGFont CGFontRef;

Overview

A glyph can represent a single character (such as ‘b’), more than one character (such as the “fi” ligature), or a special character such as a space. Core Graphics retrieves the glyphs for the font from ATS (Apple Type Services) and paints the glyphs based on the relevant parameters of the current graphics state.

Core Graphics provides a limited, low-level interface for drawing text. For information on text-drawing functions, see CGContext. For full Unicode and text-layout support, use the services provided by TextKit).

See Also

Colors and Fonts

CGColorRef

A set of components that define a color, with a color space specifying how to interpret them.

CGColorConversionInfoRef

An object that describes how to convert between color spaces for use by other system services.

CGColorSpaceRef

A profile that specifies how to interpret a color value for display.

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