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-server. Version: 2.0.0.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

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.

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

See Also