Function

CTFramesetterCreateWithAttributedString(_:)

Creates an immutable framesetter object from an attributed string.

Declaration

func CTFramesetterCreateWithAttributedString(_ attrString: CFAttributedString) -> CTFramesetter

Parameters

string

The attributed string with which to construct the framesetter object.

Return Value

A reference to a CTFramesetter object if the call was successful; otherwise, NULL.

Discussion

The resultant framesetter object can be used to create and fill text frames with the CTFramesetterCreateFrame(_:_:_:_:) call.

See Also

Creating a Framesetter

func CTFramesetterCreateWithTypesetter(CTTypesetter) -> CTFramesetter

Creates a framesetter directly from a typesetter.