---
title: "glyphRange(forCharacterRange:actualCharacterRange:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstypesetter/glyphrange(forcharacterrange:actualcharacterrange:)"
---

# glyphRange(forCharacterRange:actualCharacterRange:)

Returns the range for the glyphs mapped to the characters of the text store in the specified range.

## Declaration

```swift
func glyphRange(forCharacterRange charRange: NSRange, actualCharacterRange actualCharRange: NSRangePointer?) -> NSRange
```

## Parameters

- `charRange`: The range of the characters whose glyph range is desired.
- `actualCharRange`: On return, all characters mapped to those glyphs; may be NULL.

## Return Value

Return Value The range for the glyphs mapped to the characters of the text store in charRange.

## Discussion

Discussion A subclass can override this method to interact with custom glyph storage.

## See Also

### Interfacing with Glyph Storage

- [characterRange(forGlyphRange:actualGlyphRange:)](appkit/nstypesetter/characterrange(forglyphrange:actualglyphrange:).md)
- [setAttachmentSize(_:forGlyphRange:)](appkit/nstypesetter/setattachmentsize(_:forglyphrange:).md)
- [setBidiLevels(_:forGlyphRange:)](appkit/nstypesetter/setbidilevels(_:forglyphrange:).md)
- [setDrawsOutsideLineFragment(_:forGlyphRange:)](appkit/nstypesetter/setdrawsoutsidelinefragment(_:forglyphrange:).md)
- [setLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)](appkit/nstypesetter/setlinefragmentrect(_:forglyphrange:usedrect:baselineoffset:).md)
- [setLocation(_:withAdvancements:forStartOfGlyphRange:)](appkit/nstypesetter/setlocation(_:withadvancements:forstartofglyphrange:).md)
- [setNotShownAttribute(_:forGlyphRange:)](appkit/nstypesetter/setnotshownattribute(_:forglyphrange:).md)
