---
title: "range(ofNominallySpacedGlyphsContaining:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nslayoutmanager/range(ofnominallyspacedglyphscontaining:)"
---

# range(ofNominallySpacedGlyphsContaining:)

Returns the range of displayable glyphs that surround the glyph at the specified index.

## Declaration

```swift
func range(ofNominallySpacedGlyphsContaining glyphIndex: Int) -> NSRange
```

## Parameters

- `glyphIndex`: Index of the glyph to test.

## Return Value

Return Value The range of nominally spaced glyphs.

## Discussion

Discussion This method returns the range for the glyphs around the given glyph that can be displayed using only their advancements from the font, without pairwise kerning or other adjustments to spacing. The range returned begins with the first glyph, counting back from glyphIndex, that has a location set, and it continues up to, but does not include, the next glyph that has a location set. Performs glyph generation and layout if needed.

## See Also

### Performing advanced layout queries

- [boundingRect(forGlyphRange:in:)](uikit/nslayoutmanager/boundingrect(forglyphrange:in:).md)
- [characterIndex(for:in:fractionOfDistanceBetweenInsertionPoints:)](uikit/nslayoutmanager/characterindex(for:in:fractionofdistancebetweeninsertionpoints:).md)
- [characterRange(forGlyphRange:actualGlyphRange:)](uikit/nslayoutmanager/characterrange(forglyphrange:actualglyphrange:).md)
- [enumerateEnclosingRects(forGlyphRange:withinSelectedGlyphRange:in:using:)](uikit/nslayoutmanager/enumerateenclosingrects(forglyphrange:withinselectedglyphrange:in:using:).md)
- [enumerateLineFragments(forGlyphRange:using:)](uikit/nslayoutmanager/enumeratelinefragments(forglyphrange:using:).md)
- [fractionOfDistanceThroughGlyph(for:in:)](uikit/nslayoutmanager/fractionofdistancethroughglyph(for:in:).md)
- [getLineFragmentInsertionPoints(forCharacterAt:alternatePositions:inDisplayOrder:positions:characterIndexes:)](uikit/nslayoutmanager/getlinefragmentinsertionpoints(forcharacterat:alternatepositions:indisplayorder:positions:characterindexes:).md)
- [glyphIndex(for:in:)](uikit/nslayoutmanager/glyphindex(for:in:).md)
- [glyphIndex(for:in:fractionOfDistanceThroughGlyph:)](uikit/nslayoutmanager/glyphindex(for:in:fractionofdistancethroughglyph:).md)
- [glyphRange(forBoundingRect:in:)](uikit/nslayoutmanager/glyphrange(forboundingrect:in:).md)
- [glyphRange(forBoundingRectWithoutAdditionalLayout:in:)](uikit/nslayoutmanager/glyphrange(forboundingrectwithoutadditionallayout:in:).md)
- [glyphRange(for:)](uikit/nslayoutmanager/glyphrange(for:).md)
- [glyphRange(forCharacterRange:actualCharacterRange:)](uikit/nslayoutmanager/glyphrange(forcharacterrange:actualcharacterrange:).md)
