setDrawsOutsideLineFragment(_:forGlyphRange:)
Sets whether the specified glyphs exceed the bounds of the line fragment in which they are laid out.
Declaration
func setDrawsOutsideLineFragment(_ flag: Bool, forGlyphRange glyphRange: NSRange)Parameters
Discussion
This can happen when text is set at a fixed line height. For example, if the user specifies a fixed line height of 12 points and sets the font size to 24 points, the glyphs will exceed their layout rectangles.
A subclass can override this method to interact with custom glyph storage.
See Also
Interfacing with Glyph Storage
characterRange(forGlyphRange:actualGlyphRange:)glyphRange(forCharacterRange:actualCharacterRange:)setAttachmentSize(_:forGlyphRange:)setBidiLevels(_:forGlyphRange:)setLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setLocation(_:withAdvancements:forStartOfGlyphRange:)setNotShownAttribute(_:forGlyphRange:)