---
title: "Types: editor: Text and fonts"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: editor: Text and fonts

## `AltTextPatch`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="alttextpatch-decorative" data-search="AltTextPatch.decorative"></a>`decorative?` | <code>boolean</code> |  |
| <a id="alttextpatch-description" data-search="AltTextPatch.description"></a>`description?` | <code>string</code> |  |


## `AltTextView`

The one selected object's alt text.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="alttextview-decorative" data-search="AltTextView.decorative"></a>`decorative` | <code>boolean</code> |  |
| <a id="alttextview-description" data-search="AltTextView.description"></a>`description` | <code>string</code> |  |
| <a id="alttextview-key" data-search="AltTextView.key"></a>`key` | <code>string</code> |  |


## `CellMargins`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="cellmargins-bottom" data-search="CellMargins.bottom"></a>`bottom` | <code>number</code> |  |
| <a id="cellmargins-left" data-search="CellMargins.left"></a>`left` | <code>number</code> |  |
| <a id="cellmargins-right" data-search="CellMargins.right"></a>`right` | <code>number</code> |  |
| <a id="cellmargins-top" data-search="CellMargins.top"></a>`top` | <code>number</code> |  |


## `FontBytes`

Import from `@reductoai/pptx-editor`.

```ts
type FontBytes = (id: string) => Uint8Array | null | undefined
```


## `OutlineParagraph`

One outline line under a slide's title: a paragraph of a body placeholder.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="outlineparagraph-level" data-search="OutlineParagraph.level"></a>`level` | <code>number</code> | 0 for the title; 1 for a first-level body paragraph, as PowerPoint's outline indents it. |
| <a id="outlineparagraph-paragraph" data-search="OutlineParagraph.paragraph"></a>`paragraph` | <code>number</code> | Paragraph index in the story. |
| <a id="outlineparagraph-start" data-search="OutlineParagraph.start"></a>`start` | <code>number</code> | Frame offset of the paragraph's first character, for `selectText`. |
| <a id="outlineparagraph-story" data-search="OutlineParagraph.story"></a>`story` | <code>string</code> |  |
| <a id="outlineparagraph-text" data-search="OutlineParagraph.text"></a>`text` | <code>string</code> |  |


## `ParagraphAlign`

Import from `@reductoai/pptx/editor`.

```ts
type ParagraphAlign = "Left" | "Center" | "Right" | "Justify"
```


## `ParagraphSpacing`

`before` and `after` in points. Indentation, also in points: `leftIndent` is Before text
(`marL`); `firstLineIndent` is First line, or negative for Hanging (`indent`).

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="paragraphspacing-after" data-search="ParagraphSpacing.after"></a>`after?` | <code>number</code> |  |
| <a id="paragraphspacing-before" data-search="ParagraphSpacing.before"></a>`before?` | <code>number</code> |  |
| <a id="paragraphspacing-firstlineindent" data-search="ParagraphSpacing.firstLineIndent"></a>`firstLineIndent?` | <code>number</code> |  |
| <a id="paragraphspacing-leftindent" data-search="ParagraphSpacing.leftIndent"></a>`leftIndent?` | <code>number</code> |  |
| <a id="paragraphspacing-line" data-search="ParagraphSpacing.line"></a>`line?` | <code><a href="/office/pptx/api/types-editor-other#linespacing">LineSpacing</a></code> |  |


## `PastedRun`

One run of pasted text; a paragraph break is `\r` inside `text`.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="pastedrun-format" data-search="PastedRun.format"></a>`format?` | <code><a href="/office/pptx/api/types-editor-text-and-fonts#textformat">TextFormat</a></code> |  |
| <a id="pastedrun-href" data-search="PastedRun.href"></a>`href?` | <code>string</code> |  |
| <a id="pastedrun-text" data-search="PastedRun.text"></a>`text` | <code>string</code> |  |


## `TextAnchor`

Import from `@reductoai/pptx/editor`.

```ts
type TextAnchor = "top" | "middle" | "bottom"
```


## `TextAutofit`

Format Shape > Text Box > Autofit: Do not Autofit, Shrink text on overflow, Resize shape to fit text.

Import from `@reductoai/pptx/editor`.

```ts
type TextAutofit = "none" | "shrink" | "resize"
```


## `TextBoxOptions`

Format Shape > Text Box: autofit, the four margins in points and Wrap text in shape.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="textboxoptions-autofit" data-search="TextBoxOptions.autofit"></a>`autofit` | <code><a href="/office/pptx/api/types-editor-text-and-fonts#textautofit">TextAutofit</a></code> |  |
| <a id="textboxoptions-bottom" data-search="TextBoxOptions.bottom"></a>`bottom` | <code>number</code> |  |
| <a id="textboxoptions-left" data-search="TextBoxOptions.left"></a>`left` | <code>number</code> |  |
| <a id="textboxoptions-right" data-search="TextBoxOptions.right"></a>`right` | <code>number</code> |  |
| <a id="textboxoptions-top" data-search="TextBoxOptions.top"></a>`top` | <code>number</code> |  |
| <a id="textboxoptions-wrap" data-search="TextBoxOptions.wrap"></a>`wrap` | <code>boolean</code> |  |


## `TextCase`

Change Case: a word in capitals stays, as an acronym.

Import from `@reductoai/pptx/editor`.

```ts
type TextCase = "sentence" | "lower" | "upper" | "capitalize" | "toggle"
```


## `TextColumns`

Columns in a text frame; `spacing` is the gap between them in points.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="textcolumns-count" data-search="TextColumns.count"></a>`count` | <code>number</code> |  |
| <a id="textcolumns-spacing" data-search="TextColumns.spacing"></a>`spacing` | <code>number</code> |  |


## `TextDirection`

Import from `@reductoai/pptx/editor`.

```ts
type TextDirection = "horizontal" | "rotate90" | "rotate270" | "stacked"
```


## `TextFormat`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="textformat-bold" data-search="TextFormat.bold"></a>`bold?` | <code>boolean</code> |  |
| <a id="textformat-color" data-search="TextFormat.color"></a>`color?` | <code>string</code> | `#RRGGBB`. |
| <a id="textformat-font" data-search="TextFormat.font"></a>`font?` | <code>string</code> |  |
| <a id="textformat-fontfareast" data-search="TextFormat.fontFarEast"></a>`fontFarEast?` | <code>string</code> | East Asian face (`a:ea`). |
| <a id="textformat-highlight" data-search="TextFormat.highlight"></a>`highlight?` | <code>string &#124; null</code> | `#RRGGBB`; null clears it. |
| <a id="textformat-italic" data-search="TextFormat.italic"></a>`italic?` | <code>boolean</code> |  |
| <a id="textformat-size" data-search="TextFormat.size"></a>`size?` | <code>number</code> | Points. |
| <a id="textformat-spacing" data-search="TextFormat.spacing"></a>`spacing?` | <code>number &#124; null</code> | Character spacing in points; null is Normal (`CHARACTER_SPACINGS`). |
| <a id="textformat-strikethrough" data-search="TextFormat.strikethrough"></a>`strikethrough?` | <code>boolean</code> |  |
| <a id="textformat-subscript" data-search="TextFormat.subscript"></a>`subscript?` | <code>boolean</code> | Lowered 25% (`baseline="-25000"`); true clears a superscript. |
| <a id="textformat-superscript" data-search="TextFormat.superscript"></a>`superscript?` | <code>boolean</code> | Raised 30% (`baseline="30000"`); true clears a subscript. |
| <a id="textformat-symbol" data-search="TextFormat.symbol"></a>`symbol?` | <code>string</code> | Face of the run's private-use characters (`a:sym`), as a symbol font is written. |
| <a id="textformat-underline" data-search="TextFormat.underline"></a>`underline?` | <code>boolean</code> |  |

Source: https://docs.reducto.ai/office/pptx/api/types-editor-text-and-fonts/index.mdx
