- Inherits from:
- NSTypesetter : NSObject
- Conforms to:
- NSObject
- (NSObject)
Declared in:
- AppKit/NSTypesetter.h
This class does simple left-to-right typesetting with some support for non-spacing marks.
These constants are provided as a convenience by NSSimpleHorizontalTypesetter
Constant | Description |
NSLayoutNotDone |
Description forthcoming. |
NSLayoutDone |
Description forthcoming. |
NSLayoutCantFit |
Description forthcoming. |
NSLayoutOutOfGlyphs |
Description forthcoming. |
These modes determine how to lay a glyph out in relation to a previous glyph.
Constant | Description |
NSGlyphLayoutAtAPoint |
Description forthcoming. |
NSGlyphLayoutAgainstAPoint |
Description forthcoming. |
NSGlyphLayoutWithPrevious |
Description forthcoming. |
These specify layout direction.
Constant | Description |
NSLayoutLeftToRight |
Description forthcoming. |
NSLayoutRightToLeft |
Description forthcoming. |
- Getting a typesetter
- + sharedInstance
- Getting global information about a typesetter
- - baseOfTypesetterGlyphInfo
- - capacityOfTypesetterGlyphInfo
- - currentContainer
- - currentLayoutManager
- - currentParagraphStyle
- - currentTextStorage
- - firstIndexOfCurrentLineFragment
- - sizeOfTypesetterGlyphInfo
- Laying out glyphs
- - breakLineAtIndex:
- - fullJustifyLineAtGlyphIndex:
- - glyphIndexToBreakLineByHypenatingWordAtIndex:
- - glyphIndexToBreakLineByWrappingAtIndex:
- - insertGlyph:atGlyphIndex:characterIndex:
- - layoutControlGlyphForLineFragment:
- - layoutGlyphsInHorizontalLineFragment:baseline:
- - layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:
- - layoutTab
- - typesetterLaidOneGlyph:
- - updateCurGlyphOffset
- - willSetLineFragmentRect:forGlyphRange:usedRect:
- Glyph caching
- - clearAttributesCache
- - clearGlyphCache
- - fillAttributesCache
- - growGlyphCaches:fillGlyphInfo:
+ (id)sharedInstance
- (NSTypesetterGlyphInfo *)baseOfTypesetterGlyphInfo
- (void)breakLineAtIndex:(unsigned)location
- (unsigned)capacityOfTypesetterGlyphInfo
- (void)clearAttributesCache
- (void)clearGlyphCache
- (NSTextContainer *)currentContainer
- (NSLayoutManager *)currentLayoutManager
- (NSParagraphStyle *)currentParagraphStyle
- (NSTextStorage *)currentTextStorage
- (void)fillAttributesCache
- (unsigned)firstGlyphIndexOfCurrentLineFragment
- (void)fullJustifyLineAtGlyphIndex:(unsigned)glyphIndexForLineBreak
- (unsigned)growGlyphCaches:(unsigned)desiredCapacity
fillGlyphInfo:(BOOL)fillGlyphInfo
firstInvalidGlyphIndex
.
Returns the number of glyphs received.- (void)insertGlyph:(NSGlyph)glyph
atGlyphIndex:(unsigned)glyphIndex
characterIndex:(unsigned)charIndex
- (unsigned)glyphIndexToBreakLineByHyphenatingWordAtIndex:(unsigned)charIndex
- (unsigned)glyphIndexToBreakLineByWordWrappingAtIndex:(unsigned)charIndex
- (NSLayoutStatus)layoutControlGlyphForLineFragment:(NSRect)lineFrag
- (NSLayoutStatus)layoutGlyphsInHorizontalLineFragment:(NSRect
*)lineFragmentRect
baseline:(float *)baseline
- (void)layoutGlyphsInLayoutManager:(NSLayoutManager
*)layoutManager
startingAtGlyphIndex:(unsigned)startGlyphIndex
maxNumberOfLineFragments:(unsigned)maxNumLines
nextGlyphIndex:(unsigned *)nextGlyph
- (void)layoutTab
- (unsigned)sizeOfTypesetterGlyphInfo
- (void)typesetterLaidOneGlyph:(NSTypesetterGlyphInfo
*)gl
- (void)updateCurGlyphOffset
- (void)willSetLineFragmentRect:(NSRect
*)aRect
forGlyphRange:(NSRange)aRange
usedRect:(NSRect *)bRect