# loadFontCatalog Function

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

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > loadFontCatalog Function
- **369 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/loadfontcatalog-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/loadfontcatalog-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-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

```typescript
loadFontCatalog(url: string, options?: { signal?: AbortSignal; baseURL?: string; }): Promise<FontCatalog>
```

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

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

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

### See Also

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

---

## Nearby

- **Previous:** [ListenerErrorEvent.event Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/listenererrorevent/event-property/llms-full.txt)
- **Next:** [LoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/loadoptions/llms-full.txt)
