# XlsxExportOptions.fonts Property

> XlsxExportOptions.fonts property in the Node.js TypeScript API: Document font bytes and substitutions that keep the font names of cell formatting.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > XlsxExportOptions > XlsxExportOptions.fonts Property
- **223 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/xlsxexportoptions/fonts-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/xlsxexportoptions/fonts-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/xlsxexportoptions/fonts-property/llms-full.txt

---

Supply document-scoped font bytes and family substitutions for TX Sheet Control workbook operations, preserving original cell formatting names.

### Syntax

```typescript
fonts?: Pick<DocumentFontLoadOptions, 'sources' | 'substitutions'>;
```

### Example

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

async function saveInvoice(editor: ServerSheetControl, fontBase64: string) {
    return editor.save(StreamType.SpreadsheetML, { spreadsheetML: { fonts: { sources: [{ family: 'Invoice Sans', base64: fontBase64 }] } } });
}
```

---

## Nearby

- **Previous:** [XlsxExportOptions.preserveOriginal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/xlsxexportoptions/preserveoriginal-property/llms-full.txt)
- **Next:** [XlsxImportOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/xlsximportoptions/llms-full.txt)
