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
characterRange(forGlyphRange:actualGlyphRange:)glyphRange(forCharacterRange:actualCharacterRange:)setBidiLevels(_:forGlyphRange:)setDrawsOutsideLineFragment(_:forGlyphRange:)setLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setLocation(_:withAdvancements:forStartOfGlyphRange:)setNotShownAttribute(_:forGlyphRange:)