Important: The information in this document is obsolete and should not be used for new development.
Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.0 and later. |
Declared in | NSSimpleHorizontalTypesetter.h |
Companion guides |
NSSimpleHorizontalTypesetter
is deprecated in Mac OS X version 10.4. Use NSATSTypesetter instead.
In Mac OS X version 10.2 and earlier, by default, NSLayoutManager
used this class to perform line layout, which includes word wrapping, hyphenation, and line breaking. NSSimpleHorizontalTypesetter
performs what is actually fairly complex left-to-right typesetting with some support for nonspacing marks. See layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:
for more information.
+ sharedInstance
Deprecated in Mac OS X v10.4
– baseOfTypesetterGlyphInfo
Deprecated in Mac OS X v10.4
– capacityOfTypesetterGlyphInfo
Deprecated in Mac OS X v10.4
– currentContainer
Deprecated in Mac OS X v10.4
– currentLayoutManager
Deprecated in Mac OS X v10.4
– currentParagraphStyle
Deprecated in Mac OS X v10.4
– currentTextStorage
Deprecated in Mac OS X v10.4
– firstGlyphIndexOfCurrentLineFragment
Deprecated in Mac OS X v10.4
– sizeOfTypesetterGlyphInfo
Deprecated in Mac OS X v10.4
– breakLineAtIndex:
Deprecated in Mac OS X v10.4
– fullJustifyLineAtGlyphIndex:
Deprecated in Mac OS X v10.4
– glyphIndexToBreakLineByHyphenatingWordAtIndex:
Deprecated in Mac OS X v10.4
– glyphIndexToBreakLineByWordWrappingAtIndex:
Deprecated in Mac OS X v10.4
– insertGlyph:atGlyphIndex:characterIndex:
Deprecated in Mac OS X v10.4
– layoutControlGlyphForLineFragment:
Deprecated in Mac OS X v10.4
– layoutGlyphsInHorizontalLineFragment:baseline:
Deprecated in Mac OS X v10.4
– layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:
Deprecated in Mac OS X v10.4
– layoutTab
Deprecated in Mac OS X v10.4
– typesetterLaidOneGlyph:
Deprecated in Mac OS X v10.4
– updateCurGlyphOffset
Deprecated in Mac OS X v10.4
– willSetLineFragmentRect:forGlyphRange:usedRect:
Deprecated in Mac OS X v10.4
– clearAttributesCache
Deprecated in Mac OS X v10.4
– clearGlyphCache
Deprecated in Mac OS X v10.4
– fillAttributesCache
Deprecated in Mac OS X v10.4
– growGlyphCaches:fillGlyphInfo:
Deprecated in Mac OS X v10.4
These constants are returned from the method layoutGlyphsInHorizontalLineFragment:baseline:
to indicate the current status of layout.
typedef enum _NSLayoutStatus { NSLayoutNotDone = 0, NSLayoutDone, NSLayoutCantFit, NSLayoutOutOfGlyphs } NSLayoutStatus;
NSLayoutNotDone
Indicates that not all glyphs are laid yet, but all glyphs laid out so far fit within the given line fragment rectangle.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSLayoutDone
Indicates that layout is complete and all glyphs fit within the given line fragment rectangle.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSLayoutCantFit
Indicates that a glyph wouldn’t fit in the line fragment rectangle.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSLayoutOutOfGlyphs
Indicates that layout is complete and there are no more glyphs to lay out.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSSimpleHorizontalTypesetter.h
These constants are used internally by the typesetter classes:
typedef enum _NSGlyphLayoutMode { NSGlyphLayoutAtAPoint = 0, NSGlyphLayoutAgainstAPoint, NSGlyphLayoutWithPrevious } NSGlyphLayoutMode;
NSGlyphLayoutAtAPoint
Used internally.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSGlyphLayoutAgainstAPoint
Used internally.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSGlyphLayoutWithPrevious
Used internally.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSSimpleHorizontalTypesetter.h
These constants specify layout direction:
typedef enum _NSLayoutDirection { NSLayoutLeftToRight = 0, NSLayoutRightToLeft } NSLayoutDirection;
NSLayoutLeftToRight
Lay out glyphs left to right.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSLayoutRightToLeft
Lay out glyphs right to left.
Available in Mac OS X v10.0 and later.
Declared in NSSimpleHorizontalTypesetter.h
.
NSSimpleHorizontalTypesetter.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)