XlsxExportOptions.fonts Property
Supply document-scoped font bytes and family substitutions for TX Sheet Control workbook operations, preserving original cell formatting names.
Syntax
fonts?: Pick<DocumentFontLoadOptions, 'sources' | 'substitutions'>;
Example
import { StreamType, type Spreadsheet } from '@txtextcontrol/tx-sheet-control';
async function saveInvoice(editor: Spreadsheet, fontBase64: string) {
return editor.save(StreamType.SpreadsheetML, { spreadsheetML: { fonts: { sources: [{ family: 'Invoice Sans', base64: fontBase64 }] } } });
}