createPostScriptSubset(subsetName:format:glyphs:count:encoding:)
Creates a subset of the font in the specified PostScript format.
Declaration
func createPostScriptSubset(subsetName: CFString, format: CGFontPostScriptFormat, glyphs: UnsafePointer<CGGlyph>?, count: Int, encoding: UnsafePointer<CGGlyph>?) -> CFData?Parameters
- 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
glyphsarray. - encoding:
The default encoding for the subset. You can pass
nilif 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/.