Contents

range(ofNominallySpacedGlyphsContaining:)

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

Declaration

func range(ofNominallySpacedGlyphsContaining glyphIndex: Int) -> NSRange

Parameters

  • glyphIndex:

    Index of the glyph to test.

Return Value

The range of nominally spaced glyphs.

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