CTFramesetter

Generate text frames.

Overview

CTFramesetter is an object factory for CTFrame objects.

The framesetter takes an attributed string object and a shape descriptor object and calls into the typesetter to create line objects that fill that shape. The output is a frame object containing an array of lines. The frame can then draw itself directly into the current graphic context.

Topics

Creating a Framesetter

CTFramesetterCreateWithAttributedString

Creates an immutable framesetter object from an attributed string.

CTFramesetterCreateWithTypesetter

Creates a framesetter directly from a typesetter.

Creating Frames

CTFramesetterCreateFrame

Creates an immutable frame using a framesetter.

CTFramesetterGetTypesetter

Returns the typesetter object being used by the framesetter.

Frame Sizing

CTFramesetterSuggestFrameSizeWithConstraints

Determines the frame size needed for a string range.

Getting the Type Identifier

CTFramesetterGetTypeID

Returns the Core Foundation type identifier of the framesetter object.

Data Types

CTFramesetterRef

A reference to a Core Foundation framesetter object.

See Also

Opaque Types

CTFont

A font object.

CTGlyphInfo

Override a font's specified mapping from Unicode to the glyph ID.

CTLine

A line of text.

CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

CTTextTab

A tab in a paragraph style, storing an alignment type and location.

CTTypesetter

A typesetter which performs line layout.