---
title: CTFramesetter
framework: coretext
role: symbol
role_heading: Class
path: coretext/ctframesetter
---

# CTFramesetter

Generate text frames.

## Declaration

```swift
class CTFramesetter
```

## Overview

Overview CTFramesetter is an object factory for CTFrame objects. The framesetter takes an attributed string object and a shape descriptor object and calls into the typesetter to create line objects that fill that shape. The output is a frame object containing an array of lines. The frame can then draw itself directly into the current graphic context.

## Topics

### Creating a Framesetter

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

### Creating Frames

- [CTFramesetterCreateFrame(_:_:_:_:)](coretext/ctframesettercreateframe(_:_:_:_:).md)
- [CTFramesetterGetTypesetter(_:)](coretext/ctframesettergettypesetter(_:).md)

### Frame Sizing

- [CTFramesetterSuggestFrameSizeWithConstraints(_:_:_:_:_:)](coretext/ctframesettersuggestframesizewithconstraints(_:_:_:_:_:).md)

### Getting the Type Identifier

- [CTFramesetterGetTypeID()](coretext/ctframesettergettypeid().md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Opaque Types

- [CTFont](coretext/ctfont.md)
- [CTFontCollection](coretext/ctfontcollection.md)
- [CTFontDescriptor](coretext/ctfontdescriptor.md)
- [CTFrame](coretext/ctframe.md)
- [CTGlyphInfo](coretext/ctglyphinfo.md)
- [CTLine](coretext/ctline.md)
- [CTParagraphStyle](coretext/ctparagraphstyle.md)
- [CTRun](coretext/ctrun.md)
- [CTRunDelegate](coretext/ctrundelegate.md)
- [CTTextTab](coretext/cttexttab.md)
- [CTTypesetter](coretext/cttypesetter.md)
