Contents

setAttachmentSize(_:forGlyphRange:)

Sets the size the specified glyphs (assumed to be attachments) will be asked to draw themselves at.

Declaration

func setAttachmentSize(_ attachmentSize: NSSize, forGlyphRange glyphRange: NSRange)

Parameters

  • attachmentSize:

    The size the glyphs in glyphRange (assumed to be attachments) will be asked to draw themselves at.

  • glyphRange:

    The range of glyphs the attachment size applies to.

Discussion

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

See Also

Interfacing with Glyph Storage