TX Sheet Control

DocumentFontSource.italic Property

Property

Italic face; omitted infers the font metadata.

Syntax

italic?: boolean;

Example

import { StreamType, type Spreadsheet, type DocumentFontSource } from '@txtextcontrol/tx-sheet-control';

async function loadInvoice(editor: Spreadsheet, inputBytes: Uint8Array, fontBase64: string) {
    const face: DocumentFontSource = { family: 'Invoice Sans', base64: fontBase64 };
    await editor.load(inputBytes, StreamType.OpenDocumentSpreadsheet, { fonts: { sources: [face] } });
}