Next Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

NSSimpleHorizontalTypesetter Class Reference (Not Recommended)

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

Overview

Important: The information in this document is obsolete and should not be used for new development.

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.

Tasks

Getting a Typesetter

Getting Global Information About a Typesetter

Laying out Glyphs

Glyph Caching

Constants

NSLayoutStatus

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;

Constants
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.

Availability
Declared In
NSSimpleHorizontalTypesetter.h

NSGlyphLayoutMode

These constants are used internally by the typesetter classes:

typedef enum _NSGlyphLayoutMode {
   NSGlyphLayoutAtAPoint = 0,
   NSGlyphLayoutAgainstAPoint,
   NSGlyphLayoutWithPrevious
} NSGlyphLayoutMode;

Constants
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.

Availability
Declared In
NSSimpleHorizontalTypesetter.h

NSLayoutDirection

These constants specify layout direction:

typedef enum _NSLayoutDirection {
   NSLayoutLeftToRight = 0,
   NSLayoutRightToLeft
} NSLayoutDirection;

Constants
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.

Availability
Declared In
NSSimpleHorizontalTypesetter.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.