TX Sheet Control

FontAsset.priority Property

Property

Higher priorities take precedence for matching faces of the same family, weight and style.

Syntax

priority?: number;

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 });
}