NSATSTypesetter
A concrete typesetter object that places glyphs during the text layout process.
Declaration
class NSATSTypesetterOverview
An NSATSTypesetter object creates line fragment rectangles, positions glyphs within the line fragments, determines line breaks by word wrapping and hyphenation, and handles tab positioning. This object encapsulates the advanced typesetting capabilities of Core Text. NSATSTypesetter provides line and character spacing accuracy and supports many languages, including bidirectional languages.
Topics
Getting the shared typesetter object
Accessing the layout manager
Getting the text container
Performing font substitution
Getting the location of text tabs
Accessing paragraph information
attributedStringsetParagraphGlyphRange(_:separatorGlyphRange:)paragraphGlyphRangeparagraphSeparatorGlyphRange
Laying out a paragraph
Getting Spacing Information
lineSpacing(afterGlyphAt:withProposedLineFragmentRect:)paragraphSpacing(afterGlyphAt:withProposedLineFragmentRect:)paragraphSpacing(beforeGlyphAt:withProposedLineFragmentRect:)
Laying Out Glyphs
boundingBox(forControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)getLineFragmentRect(_:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:)hyphenCharacter(forGlyphAt:)hyphenationFactor(forGlyphAt:)shouldBreakLine(byHyphenatingBeforeCharacterAt:)shouldBreakLine(byWordBeforeCharacterAt:)willSetLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setHardInvalidation(_:forGlyphRange:)