---
title: "deleteGlyphs(in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nslayoutmanager/deleteglyphs(in:)"
---

# deleteGlyphs(in:)

Deletes the glyphs in the given range from the receiver’s glyph store.

## Declaration

```swift
func deleteGlyphs(in glyphRange: NSRange)
```

## Parameters

- `glyphRange`: The range of glyphs to delete.

## Discussion

Discussion This method is for use by the glyph-generation mechanism and doesn’t perform any invalidation or generation of the glyphs or layout. This method should be invoked only during glyph generation and typesetting, in almost all cases only by the glyph generator or typesetter. For example, a custom glyph generator or typesetter might invoke it.

## See Also

### Methods

- [showCGGlyphs(_:positions:count:font:matrix:attributes:in:)](appkit/nslayoutmanager/showcgglyphs(_:positions:count:font:matrix:attributes:in:).md)
- [invalidateGlyphs(onLayoutInvalidationForGlyphRange:)](appkit/nslayoutmanager/invalidateglyphs(onlayoutinvalidationforglyphrange:).md)
- [invalidateLayout(forCharacterRange:isSoft:actualCharacterRange:)](appkit/nslayoutmanager/invalidatelayout(forcharacterrange:issoft:actualcharacterrange:).md)
- [textStorage(_:edited:range:changeInLength:invalidatedRange:)](appkit/nslayoutmanager/textstorage(_:edited:range:changeinlength:invalidatedrange:).md)
- [insertGlyph(_:atGlyphIndex:characterIndex:)](appkit/nslayoutmanager/insertglyph(_:atglyphindex:characterindex:).md)
- [insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)](appkit/nslayoutmanager/insertglyphs(_:length:forstartingglyphat:characterindex:).md)
- [glyph(at:)](appkit/nslayoutmanager/glyph(at:).md)
- [glyph(at:isValidIndex:)](appkit/nslayoutmanager/glyph(at:isvalidindex:).md)
- [replaceGlyph(at:withGlyph:)](appkit/nslayoutmanager/replaceglyph(at:withglyph:).md)
- [getGlyphs(_:range:)](appkit/nslayoutmanager/getglyphs(_:range:).md)
- [getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)](appkit/nslayoutmanager/getglyphs(in:glyphs:characterindexes:glyphinscriptions:elasticbits:).md)
- [getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)](appkit/nslayoutmanager/getglyphs(in:glyphs:characterindexes:glyphinscriptions:elasticbits:bidilevels:).md)
- [setCharacterIndex(_:forGlyphAt:)](appkit/nslayoutmanager/setcharacterindex(_:forglyphat:).md)
- [intAttribute(_:forGlyphAt:)](appkit/nslayoutmanager/intattribute(_:forglyphat:).md)
- [setIntAttribute(_:value:forGlyphAt:)](appkit/nslayoutmanager/setintattribute(_:value:forglyphat:).md)
