# FontManager Class

> FontManager class in the browser JavaScript API: Loads document fonts and exposes font choices, layout metrics and deterministic document rendering assets.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > FontManager Class
- **578 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/llms-full.txt

---

Loads document fonts and exposes font choices, layout metrics and deterministic document rendering assets.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

ES module import: `import { FontManager } from '@txtextcontrol/tx-sheet-control';`.

### Constructor

```javascript
new FontManager(options)
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `options` | `FontManagerOptions \| undefined` | Yes | Supported settings for this operation; omitted settings retain documented defaults. |

Returns: `FontManagerInstance`.

### Members

#### Properties

| Property | Description |
|---|---|
| [ready](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ready-property/llms-full.txt) | Resolves after runtime catalog discovery. Rejects on missing or malformed catalogs. |

#### Methods

| Method | Description |
|---|---|
| [choices](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/choices-method/llms-full.txt) | The choices operation of FontManager. |
| [ensureStyle](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ensurestyle-method/llms-full.txt) | The ensureStyle operation of FontManager. |
| [ensureWorkbook](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ensureworkbook-method/llms-full.txt) | The ensureWorkbook operation of FontManager. |
| [onChange](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/onchange-method/llms-full.txt) | The onChange operation of FontManager. |
| [state](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/state-method/llms-full.txt) | The state operation of FontManager. |

### Examples

Pass the FontManager value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```javascript
async function inspectFontManagerReady(fontManager) {
    const value = await fontManager['ready'];
    console.log('FontManager.ready', value);
}
```

### See Also

- [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt)
- [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/llms-full.txt)

---

## In This Section

- [FontManager.choices Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/choices-method/llms-full.txt): FontManager.choices method in the TX Sheet Control JavaScript API for the browser, with its syntax and a JavaScript example.
- [FontManager.ensureStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ensurestyle-method/llms-full.txt): FontManager.ensureStyle method in the TX Sheet Control JavaScript API for the browser, with the return type Promise<unknown> and a JavaScript example.
- [FontManager.ensureWorkbook Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ensureworkbook-method/llms-full.txt): FontManager.ensureWorkbook method in the TX Sheet Control JavaScript API for the browser, with the return type Promise<unknown[]> and a JavaScript example.
- [FontManager.onChange Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/onchange-method/llms-full.txt): FontManager.onChange method in the TX Sheet Control JavaScript API for the browser, with the return type () => void and a JavaScript example.
- [FontManager.ready Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/ready-property/llms-full.txt): FontManager.ready property in the TX Sheet Control JavaScript API for the browser: Resolves after runtime catalog discovery.
- [FontManager.state Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/state-method/llms-full.txt): FontManager.state method in the TX Sheet Control JavaScript API for the browser, with its syntax and a JavaScript example.

---

## Nearby

- **Previous:** [englishResources Constant](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/englishresources-constant/llms-full.txt)
- **Next:** [FontManager.choices Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/fontmanager/choices-method/llms-full.txt)
