TX Sheet Control

FontAsset Interface

Interface

Owned TrueType bytes plus face identity and aliases; rendering never requires operating-system font lookup.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
aliasesThe aliases value of FontAsset.
boldThe bold value of FontAsset.
bytesThe bytes value of FontAsset.
familyThe family value of FontAsset.
italicThe italic value of FontAsset.

Examples

Pass the FontAsset value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectFontAssetFamily(fontAsset: FontAsset) {
    const value = fontAsset['family'];
    console.log('FontAsset.family', value);
}

See Also