# DocumentFontLoadOptions.sources Property

> DocumentFontLoadOptions.sources property in the TX Sheet Control TypeScript API for the browser: Document font bytes supplied by the application before loading.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > DocumentFontLoadOptions > DocumentFontLoadOptions.sources Property
- **249 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/sources-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/sources-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/sources-property/llms-full.txt

---

Document font bytes supplied by the application before loading.

### Syntax

```typescript
sources?: readonly DocumentFontSource[];
```

### 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 });
}
```

---

## Nearby

- **Previous:** [DocumentFontLoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/llms-full.txt)
- **Next:** [DocumentFontLoadOptions.substitutions Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/substitutions-property/llms-full.txt)
