DocumentFontSource.fallback Property
Use this face only for missing characters while retaining an available primary embedded face.
Syntax
fallback?: boolean;
Example
import { StreamType, type ServerSheetControl, type DocumentFontSource } from '@txtextcontrol/tx-sheet-control-server';
async function loadInvoice(editor: ServerSheetControl, inputBytes: Uint8Array, fontBase64: string) {
const face: DocumentFontSource = { family: 'Invoice Sans', base64: fontBase64 };
await editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { fonts: { sources: [face] } });
}