> ## 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.

# Other classes: Text and fonts

## `BulletFont`

VBA `BulletFormat.Font`: the bullet's own face and colour; unset follows the text.

Import from `@reductoai/pptx/officejs`.

### BulletFont properties

| Name | Type | Description |
| - | - | - |
| `color` | `string \| null` | |
| `name` | `string \| null` | |

## `EmbeddedFont`

Extension (VBA `Presentation.SaveAs` with `EmbedTrueTypeFonts`): one embedded typeface and its faces.

Import from `@reductoai/pptx/officejs`.

### EmbeddedFont properties

| Name | Type | Description |
| - | - | - |
| `id` | `string` | read-only The typeface name text runs use; also the collection key. |
| `name` | `string` | read-only |
| `styles` | `EmbeddedFontStyle[]` | read-only The styles the deck carries a face for. |

### `EmbeddedFont.delete()`

```ts theme={null}
delete(): void
```

Removes the typeface and its font parts; text keeps its font name.

## `EmbeddedFontCollection`

Extension: the fonts the deck carries, so it shows the same on a machine without them.
`getItem` takes the typeface name.

Import from `@reductoai/pptx/officejs`.

### EmbeddedFontCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |

### `EmbeddedFontCollection.add()`

```ts theme={null}
add(
  typeface: string,
  faces: EmbeddedFontFaces,
  options?: EmbeddedFontOptions,
): EmbeddedFont
```

Embeds the faces of `typeface`; text whose font is `typeface` shows them. Each face is a
whole .ttf or .otf file; one whose licence (OS/2 fsType) forbids embedding is refused.
TrueType outlines are MTX-compressed as PowerPoint saves them; CFF outlines are stored whole.

### `EmbeddedFontCollection.getCount()`

```ts theme={null}
getCount(): ClientResult<number>
```

### `EmbeddedFontCollection.getItem()`

```ts theme={null}
getItem(key: string): EmbeddedFont
```

### `EmbeddedFontCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): EmbeddedFont
```

### `EmbeddedFontCollection.getItemOrNullObject()`

```ts theme={null}
getItemOrNullObject(key: string): EmbeddedFont & { isNullObject: boolean }
```

Office.js null-object variant; inspect `isNullObject` before other members.

## `Margins`

`PowerPoint.Margins`: a cell's text insets in points.

Import from `@reductoai/pptx/officejs`.

### Margins properties

| Name | Type | Description |
| - | - | - |
| `bottom` | `number` | |
| `left` | `number` | |
| `right` | `number` | |
| `top` | `number` | |

## `PresentationFont`

Extension (VBA `Font` of `Presentation.Fonts`): a typeface the deck's text, theme or charts name.

Import from `@reductoai/pptx/officejs`.

### PresentationFont properties

| Name | Type | Description |
| - | - | - |
| `embedded` | `boolean` | read-only True when the deck carries at least one face of it. |
| `id` | `string` | read-only |
| `name` | `string` | read-only |

## `PresentationFontCollection`

Extension (VBA `Presentation.Fonts`): the typefaces in use; `getItem` takes the name. Read-only.

Import from `@reductoai/pptx/officejs`.

### PresentationFontCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |

### `PresentationFontCollection.getCount()`

```ts theme={null}
getCount(): ClientResult<number>
```

### `PresentationFontCollection.getItem()`

```ts theme={null}
getItem(key: string): PresentationFont
```

### `PresentationFontCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): PresentationFont
```

### `PresentationFontCollection.getItemOrNullObject()`

```ts theme={null}
getItemOrNullObject(key: string): PresentationFont & { isNullObject: boolean }
```

Office.js null-object variant; inspect `isNullObject` before other members.

## `TextStyleCollection`

Extension (VBA `Master.TextStyles`): the title, body and default text the master's slides inherit.

Import from `@reductoai/pptx/officejs`.

### `TextStyleCollection.getItem()`

```ts theme={null}
getItem(type: TextStyleType): TextStyle
```

## `TextStyleLevel`

VBA `TextStyleLevel`: the font and paragraph defaults of one outline level.

Import from `@reductoai/pptx/officejs`.

### TextStyleLevel properties

| Name | Type | Description |
| - | - | - |
| `font` | `ShapeFont` | read-only |
| `paragraphFormat` | `ParagraphFormat` | read-only |

## `TextStyleLevelCollection`

VBA `TextStyleLevels`: levels 0 to 8 (VBA counts 1 to 5).

Import from `@reductoai/pptx/officejs`.

### `TextStyleLevelCollection.getCount()`

```ts theme={null}
getCount(): number
```

### `TextStyleLevelCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): TextStyleLevel
```
