---
title: "insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsglyphstorage/insertglyphs(_:length:forstartingglyphat:characterindex:)"
---

# insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)

Inserts the given glyphs into the glyph cache and maps them to the specified characters.

## Declaration

```swift
func insertGlyphs(_ glyphs: UnsafePointer<NSGlyph>, length: Int, forStartingGlyphAt glyphIndex: Int, characterIndex charIndex: Int)
```

## Parameters

- `glyphs`: The glyphs to insert.
- `length`: Number of glyphs to insert.
- `glyphIndex`: Location in the glyph cache to begin inserting glyphs.
- `charIndex`: Index of first character to be mapped.

## Discussion

Discussion This is a bulk insert method for the glyph cache.

## See Also

### Modifying the glyph cache

- [setIntAttribute(_:value:forGlyphAt:)](appkit/nsglyphstorage/setintattribute(_:value:forglyphat:).md)
