Function

CGFontCreateWithDataProvider

Creates a font object from data supplied from a data provider.

Declaration

CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider);

Parameters

provider

A data provider.

Return Value

The font object or NULL if the font can't be created. You are responsible for releasing this object using CGFontRelease.

Discussion

Before drawing text in a Core Graphics context, you must set the font in the current graphics state by calling the function CGContextSetFontSize.

See Also

Creating a CGFont Object

CGFontCreateWithFontName

Creates a font object corresponding to the font specified by a PostScript or full name.

CGFontCreateCopyWithVariations

Creates a copy of a font using a variation specification dictionary.

CGFontCreateWithPlatformFont

Creates a font object from an Apple Type Services (ATS) font.

Deprecated