# SaveOptions.fonts Property

> SaveOptions.fonts property in the browser 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 > Browser Editor > SaveOptions > SaveOptions.fonts Property
- **216 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/fonts-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/fonts-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/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 Spreadsheet } from '@txtextcontrol/tx-sheet-control';

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

---

## Nearby

- **Previous:** [SaveOptions.openDocumentSpreadsheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/opendocumentspreadsheet-property/llms-full.txt)
- **Next:** [SaveOptions.embedUsedFonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/embedusedfonts-property/llms-full.txt)
