Function

CTTypesetterCreateWithAttributedStringAndOptions(_:_:)

Creates an immutable typesetter object using an attributed string and a dictionary of options.

Declaration

func CTTypesetterCreateWithAttributedStringAndOptions(_ string: CFAttributedString, _ options: CFDictionary?) -> CTTypesetter?

Parameters

string

The attributed string to typeset. This parameter must be filled in with a valid CFAttributedString object.

options

A dictionary of typesetter options, or NULL if there are none.

Return Value

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

Discussion

The resultant typesetter can be used to create lines, perform line breaking, and do other contextual analysis based on the characters in the string.

See Also

Creating a Typesetter

func CTTypesetterCreateWithAttributedString(CFAttributedString) -> CTTypesetter

Creates an immutable typesetter object using an attributed string.