<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGFont/createPostScriptSubset(subsetName:format:glyphs:count:encoding:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGFontCreatePostScriptSubset"
  },
  "title" : "createPostScriptSubset(subsetName:format:glyphs:count:encoding:)"
}
-->

# createPostScriptSubset(subsetName:format:glyphs:count:encoding:)

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

```
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 `glyphs` array.

`encoding`

The default encoding for the subset. You can pass `nil` 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/>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)