TX Sheet Control

FontAsset.fallback Property

Property

Use this face only for missing glyphs; preserve matching primary-face glyphs.

Syntax

fallback?: boolean;

Example

function configureInvoiceFonts(registry: { add(asset: { family: string; bytes: Uint8Array; priority?: number; fallback?: boolean }): void }, bytes: Uint8Array) {
    registry.add({ family: 'Invoice Sans', bytes, priority: 1, fallback: false });
}