---
title: "createPostScriptEncoding(encoding:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgfont/createpostscriptencoding(encoding:)"
---

# createPostScriptEncoding(encoding:)

Creates a PostScript encoding of a font.

## Declaration

```swift
func createPostScriptEncoding(encoding: UnsafePointer<CGGlyph>?) -> CFData?
```

## Parameters

- `encoding`: The encoding to use.

## Return Value

Return Value A PostScript encoding of the font that contains glyphs in the specified encoding.

## Discussion

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

- [postScriptName](coregraphics/cgfont/postscriptname.md)
- [canCreatePostScriptSubset(_:)](coregraphics/cgfont/cancreatepostscriptsubset(_:).md)
- [createPostScriptSubset(subsetName:format:glyphs:count:encoding:)](coregraphics/cgfont/createpostscriptsubset(subsetname:format:glyphs:count:encoding:).md)
- [CGFontPostScriptFormat](coregraphics/cgfontpostscriptformat.md)
