# DocumentFontLoadOptions Interface

> DocumentFontLoadOptions interface in the Angular package: Document font bytes, asynchronous resolution and family substitutions for loading workbooks.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Angular > DocumentFontLoadOptions Interface
- **449 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/llms-full.txt

---

Configure document font bytes, asynchronous resolution and family substitutions while loading TX Sheet Control workbooks in TypeScript applications.

Package: `@txtextcontrol/tx-sheet-control/angular`. This is a type-only contract.

### Properties

| Property | Description |
|---|---|
| [sources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/sources-property/llms-full.txt) | Document font bytes supplied by the application before loading. |
| [substitutions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/substitutions-property/llms-full.txt) | Original workbook family to deployed or supplied family. Names in cell formatting are preserved. |
| [resolve](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/resolve-property/llms-full.txt) | Optional asynchronous JavaScript resolver, awaited before document replacement. Return a usable face or undefined to retain the normal font policy. |

### Example

```typescript
import { StreamType, type Spreadsheet, type DocumentFontLoadOptions } from '@txtextcontrol/tx-sheet-control';

async function loadInvoice(editor: Spreadsheet, inputBytes: Uint8Array, fontBase64: string) {
    const fonts: DocumentFontLoadOptions = {
        resolve: async request => ({
            family: request.family,
            bold: request.bold,
            italic: request.italic,
            base64: fontBase64
        })
    };
    await editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { fonts });
}
```

Font registration is scoped to the loaded document. The shared renderer uses the same faces for editor layout and PDF output. A load failure or cancellation retains the existing workbook.

---

## In This Section

- [DocumentFontLoadOptions.resolve Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/resolve-property/llms-full.txt): DocumentFontLoadOptions.resolve property in the Angular package: Optional asynchronous JavaScript resolver, awaited before document replacement.
- [DocumentFontLoadOptions.sources Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/sources-property/llms-full.txt): DocumentFontLoadOptions.sources property in the TX Sheet Control Angular package: Document font bytes supplied by the application before loading.
- [DocumentFontLoadOptions.substitutions Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/substitutions-property/llms-full.txt): DocumentFontLoadOptions.substitutions property in the TX Sheet Control Angular package: Original workbook family to deployed or supplied family.

---

## Nearby

- **Previous:** [FontResolutionRequest.signal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/fontresolutionrequest/signal-property/llms-full.txt)
- **Next:** [DocumentFontLoadOptions.sources Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/sources-property/llms-full.txt)
