---
title: NSGlyphStorage
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nsglyphstorage
---

# NSGlyphStorage

A set of methods that a glyph storage object must implement to interact properly with NSGlyphGenerator.

## Declaration

```swift
protocol NSGlyphStorage
```

## Overview

Overview An example of a class that conforms to the NSGlyphStorage protocol is NSLayoutManager.

## Topics

### Returning text storage

- [attributedString()](appkit/nsglyphstorage/attributedstring().md)

### Returning glyph display options

- [layoutOptions()](appkit/nsglyphstorage/layoutoptions().md)

### Modifying the glyph cache

- [insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)](appkit/nsglyphstorage/insertglyphs(_:length:forstartingglyphat:characterindex:).md)
- [setIntAttribute(_:value:forGlyphAt:)](appkit/nsglyphstorage/setintattribute(_:value:forglyphat:).md)

### Constants

- [Layout Options](appkit/layout-options.md)

## Relationships

### Conforming Types

- [NSLayoutManager](appkit/nslayoutmanager.md)

## See Also

### Glyphs

- [NSGlyph](appkit/nsglyph.md)
- [NSGlyphGenerator](appkit/nsglyphgenerator.md)
- [NSGlyphInfo](appkit/nsglyphinfo.md)
- [Reserved Glyph Codes](appkit/reserved-glyph-codes.md)
- [NSFontRenderingMode](appkit/nsfontrenderingmode.md)
