# DocumentFontLoadOptions.resolve Property

> DocumentFontLoadOptions.resolve property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > DocumentFontLoadOptions > DocumentFontLoadOptions.resolve Property
- **315 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/documentfontloadoptions/resolve-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/documentfontloadoptions/resolve-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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 ServerSheetControl, type DocumentFontLoadOptions } from '@txtextcontrol/tx-sheet-control-server';

async function loadInvoice(editor: ServerSheetControl, 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/nodejs/documentfontloadoptions/substitutions-property/llms-full.txt)
- **Next:** [TypeScript Angular API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/llms-full.txt)
