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

func CTFramesetterCreateWithAttributedString(CFAttributedString) -> CTFramesetter

Creates an immutable framesetter object from an attributed string.

func CTFramesetterCreateWithTypesetter(CTTypesetter) -> CTFramesetter

Creates a framesetter directly from a typesetter.

Creating Frames

func CTFramesetterGetTypesetter(CTFramesetter) -> CTTypesetter

Returns the typesetter object being used by the framesetter.

Getting the Type Identifier

func CTFramesetterGetTypeID() -> CFTypeID

Returns the Core Foundation type identifier of the framesetter object.

Data Types

class CTFramesetter

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.