---
title: "getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nslayoutmanager/getglyphs(in:glyphs:characterindexes:glyphinscriptions:elasticbits:)"
---

# getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)

Returns the glyphs and information needed to perform layout for the given glyph range.

## Declaration

```swift
func getGlyphs(in glyphRange: NSRange, glyphs glyphBuffer: UnsafeMutablePointer<NSGlyph>?, characterIndexes charIndexBuffer: UnsafeMutablePointer<Int>?, glyphInscriptions inscribeBuffer: UnsafeMutablePointer<NSGlyphInscription>?, elasticBits elasticBuffer: UnsafeMutablePointer<ObjCBool>?) -> Int
```

## Discussion

Discussion This is a convenience method for getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:) that does not return a bidiLevelBuffer.

## 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:bidiLevels:)](appkit/nslayoutmanager/getglyphs(in:glyphs:characterindexes:glyphinscriptions:elasticbits:bidilevels:).md)
- [deleteGlyphs(in:)](appkit/nslayoutmanager/deleteglyphs(in:).md)
- [setCharacterIndex(_:forGlyphAt:)](appkit/nslayoutmanager/setcharacterindex(_:forglyphat:).md)
- [intAttribute(_:forGlyphAt:)](appkit/nslayoutmanager/intattribute(_:forglyphat:).md)
- [setIntAttribute(_:value:forGlyphAt:)](appkit/nslayoutmanager/setintattribute(_:value:forglyphat:).md)
