Function

CTFramesetterCreateWithAttributedString

Creates an immutable framesetter object from an attributed string.

Declaration

CTFramesetterRef CTFramesetterCreateWithAttributedString(CFAttributedStringRef attrString);

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

CTFramesetterCreateWithTypesetter

Creates a framesetter directly from a typesetter.