Contents

setNotShownAttribute(_:forGlyphRange:)

Sets whether the specified glyphs are not shown.

Declaration

func setNotShownAttribute(_ flag: Bool, forGlyphRange glyphRange: NSRange)

Parameters

  • flag:

    True if the glyphs in glyphRange are not shown, False if they are shown.

  • glyphRange:

    The range of glyphs in question.

Discussion

For example, a tab or newline character doesn’t leave any marks; it just indicates where following glyphs are laid out.

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

See Also

Interfacing with Glyph Storage