---
title: "CTFramesetterCreateWithTypesetter(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctframesettercreatewithtypesetter(_:)"
---

# CTFramesetterCreateWithTypesetter(_:)

Creates a framesetter directly from a typesetter.

## Declaration

```swift
func CTFramesetterCreateWithTypesetter(_ typesetter: CTTypesetter) -> CTFramesetter
```

## Parameters

- `typesetter`: The typesetter that the framesetter uses to lay out text.

## Return Value

Return Value This function returns a reference to a CTFramesetter object.

## Discussion

Discussion Each framesetter uses a typesetter internally to perform line breaking and other contextual analysis according to the characters in a string. This function allows the framesetter to use a typesetter that the system constructs using specific options.

## See Also

### Creating a Framesetter

- [CTFramesetterCreateWithAttributedString(_:)](coretext/ctframesettercreatewithattributedstring(_:).md)
