# DocumentFontLoadOptions.resolve Property

> DocumentFontLoadOptions.resolve property in the TX Sheet Control TypeScript API for the browser, with a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > DocumentFontLoadOptions > DocumentFontLoadOptions.resolve Property
- **311 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/resolve-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/resolve-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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.

### Syntax

```typescript
resolve?: (request: FontResolutionRequest) => DocumentFontSource | undefined | Promise<DocumentFontSource | undefined>;
```

### 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.substitutions Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/documentfontloadoptions/substitutions-property/llms-full.txt)
- **Next:** [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
