# loadFontCatalog Function

> loadFontCatalog function in the TX Sheet Control JavaScript API for the browser, with the return type Promise<FontCatalog> and a JavaScript example.

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

---

Public function for loadFontCatalog.

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

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

### Syntax

```javascript
await loadFontCatalog(url, options)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `url` | `string` | No | Catalog endpoint URL; relative face URLs resolve against this endpoint. |
| `options` | `{ signal?: AbortSignal; baseURL?: string; } \| undefined` | Yes | Cancellation and an optional explicit base URL for non-browser callers. |

### Return Value

`Promise<FontCatalog>`.

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```javascript
import { loadFontCatalog } from '@txtextcontrol/tx-sheet-control';

const result = await loadFontCatalog('/assets/sheet/fonts/LiberationSans-Regular.ttf');
console.log(result);
```

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

---

## Nearby

- **Previous:** [LicenseError.code Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/licenseerror/code-property/llms-full.txt)
- **Next:** [MailMergeTemplate Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/mailmergetemplate/llms-full.txt)
