Function

CGFontCreatePostScriptSubset

Creates a subset of the font in the specified PostScript format.

Declaration

CFDataRef CGFontCreatePostScriptSubset(CGFontRef font, CFStringRef subsetName, CGFontPostScriptFormat format, const CGGlyph *glyphs, size_t count, const CGGlyph *encoding);

Parameters

font

A font object.

subsetName

The name of the subset.

format

The PostScript format of the font.

glyphs

An array that contains the glyphs in the subset.

count

The number of glyphs specified by the glyphs array.

encoding

The default encoding for the subset. You can pass NULL if you do not want to specify an encoding.

Return Value

A subset of the font created from the supplied parameters.

Discussion

For more information on PostScript format, see Adobe Type 1 Font Format, which is available from http://partners.adobe.com/.

See Also

Working With PostScript Fonts

CGFontCopyPostScriptName

Obtains the PostScript name of a font.

CGFontCanCreatePostScriptSubset

Determines whether Core Graphics can create a subset of the font in PostScript format.

CGFontCreatePostScriptEncoding

Creates a PostScript encoding of a font.

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