May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSTypesetter — Mac OS X 10.0
This abstract class provides an interface to objects that
NSLayoutManager uses to layout lines in a text
container. The Application Kit implements a single concrete subclass
of NSTypesetter in
NSSimpleHorizontalTypesetter. For more information
about Cocoa’s text layout system, see Chapter 5.
|
|
@interface NSTypesetter : NSObject
|
// Class Methods
|
+ (NSTypesetterBehavior)defaultTypesetterBehavior;
|
+ (NSSize)printingAdjustmentInLayoutManager:(NSLayoutManager *)layoutMgr forNominallySpacedGlyphRange:(NSRange)nominallySpacedGlyphsRange packedGlyphs:(const unsigned char *)packedGlyphs count:(unsigned)packedGlyphsCount; |
+ (id)sharedSystemTypesetter;
|
+ (id)sharedSystemTypesetterForBehavior:(NSTypesetterBehavior)theBehavior; |
// Instance Methods
|
- (float)baselineOffsetInLayoutManager:(NSLayoutManager *)layoutMgr glyphIndex:(unsigned)glyphIndex; |
- (void)layoutGlyphsInLayoutManager:(NSLayoutManager *)layoutManager startingAtGlyphIndex:(unsigned)startGlyphIndex maxNumberOfLineFragments:(unsigned)maxNumLines nextGlyphIndex:(unsigned *)nextGlyph; |
NSSimpleHorizontalTypesetter
Read now
Unlock full access