SaveOptions.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 ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
async function saveInvoice(editor: ServerSheetControl, fontBase64: string) {
return editor.save(StreamType.SpreadsheetML, { fonts: { sources: [{ family: 'Invoice Sans', base64: fontBase64 }] } });
}