TX Sheet Control

FontAsset.fallback Property

Property

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

Syntax

fallback?: boolean;

Example

import { FontRegistry } from '@txtextcontrol/tx-sheet-control';

function invoiceFonts(bytes : Uint8Array) {
    const fonts = new FontRegistry();
    fonts.add({ family: 'Invoice Sans', bytes, priority: 1, fallback: false });
    return fonts.shape('Invoice 2026', '12px \"Invoice Sans\"');
}