---
title: "NSConvertGlyphsToPackedGlyphs(_:_:_:_:)"
framework: appkit
role: symbol
role_heading: Function
path: "appkit/nsconvertglyphstopackedglyphs(_:_:_:_:)"
---

# NSConvertGlyphsToPackedGlyphs(_:_:_:_:)

Prepares a set of glyphs for processing by character-based routines.

## Declaration

```swift
func NSConvertGlyphsToPackedGlyphs(_ glBuf: UnsafeMutablePointer<NSGlyph>, _ count: Int, _ packing: NSMultibyteGlyphPacking, _ packedGlyphs: UnsafeMutablePointer<CChar>) -> Int
```

## Discussion

Discussion This function takes a buffer of glyphs, specified in the glBuf parameter, and packs them into a condensed character array. The character array is returned in the packedGlyphs parameter, which should have enough space for at least ((4 * count) + 1) bytes to guarantee that the packed glyphs fit. count specifies the number of glyphs in glBuf. packing specifies how the glyphs are currently packed.

## See Also

### Functions

- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSDisableScreenUpdates()](appkit/nsdisablescreenupdates().md)
- [NSEnableScreenUpdates()](appkit/nsenablescreenupdates().md)
- [NSDrawColorTiledRects(_:_:_:_:_:)](appkit/nsdrawcolortiledrects(_:_:_:_:_:).md)
- [NSSetShowsServicesMenuItem(_:_:)](appkit/nssetshowsservicesmenuitem(_:_:).md)
- [NSCopyBits(_:_:_:)](appkit/nscopybits(_:_:_:).md)
- [NSShowsServicesMenuItem(_:)](appkit/nsshowsservicesmenuitem(_:).md)
- [NSDottedFrameRect(_:)](appkit/nsdottedframerect(_:).md)
- [NSReadPixel(_:)](appkit/nsreadpixel(_:).md)
- [NSGetWindowServerMemory(_:_:_:_:)](appkit/nsgetwindowservermemory(_:_:_:_:).md)
- [fileContentsType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filecontentstype(forpathextension:).md)
- [fileNameType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filenametype(forpathextension:).md)
- [representedPathExtension](appkit/nspasteboard/pasteboardtype/representedpathextension.md)
- [representedPathExtensions(from:)](appkit/nspasteboard/pasteboardtype/representedpathextensions(from:).md)
