PATH  Documentation > Mac OS X > Application Kit Reference: Objective-C

Table of Contents

NSTypesetter


Inherits from:
NSObject
Conforms to:
NSObject
(NSObject)
Declared in:
AppKit/NSTypesetter.h




Class Description


This class lays glyphs out in horizontal or vertical boxes.




Method Types


TBD Method Group Name
+ printAdjustmentInLayoutManager:forNominallySpacedGlyphRange:packedGlyphs:count:
+ sharedSystemTypesetter
- baselineOffsetInLayoutManager:glyphIndex:
- layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:


Class Methods



printAdjustmentInLayoutManager:forNominallySpacedGlyphRange:packedGlyphs:count:

+ (NSSize)printingAdjustmentInLayoutManager:(NSLayoutManager *)layoutMgr forNominallySpacedGlyphRange:(NSRange)nominallySpacedGlyphsRange packedGlyphs:(const unsigned char *)packedGlyphs count:(unsigned)packedGlyphsCount

Returns the offset to be applied to the glyph in question when printing.

sharedSystemTypesetter

+ (id)sharedSystemTypesetter

Returns a shared instance of a re-entrant typesetter.


Instance Methods



baselineOffsetInLayoutManager:glyphIndex:

- (float)baselineOffsetInLayoutManager:(NSLayoutManager *)layoutMgr glyphIndex:(unsigned)glyphIndex

Description forthcoming.

layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:

- (void)layoutGlyphsInLayoutManager:(NSLayoutManager *)layoutManager startingAtGlyphIndex:(unsigned)startGlyphIndex maxNumberOfLineFragments:(unsigned)maxNumLines nextGlyphIndex:(unsigned *)nextGlyph

Lay out glyphs starting at startGlyphIndex. maxNumLines will be generated as long as the NSGlyphStorage doesn't run out of glyphs. nextGlyph will be set to the index of the next glyph that needs to be laid out.


Table of Contents