Function

CTFramesetterCreateWithTypesetter(_:)

Creates a framesetter directly from a typesetter.

Declaration

func CTFramesetterCreateWithTypesetter(_ typesetter: CTTypesetter) -> CTFramesetter

Parameters

typesetter

The typesetter to be used by the newly created framesetter.

Return Value

This function returns a reference to a CTFramesetter object.

Discussion

Each framesetter uses a typesetter internally to perform line breaking and other contextual analysis based on the characters in a string. This function allows the framesetter to use a typesetter that was constructed using specific options.

See Also

Creating a Framesetter

func CTFramesetterCreateWithAttributedString(CFAttributedString) -> CTFramesetter

Creates an immutable framesetter object from an attributed string.