TX Sheet Control

FontFamilyDefinition Interface

Interface

A selectable font family and its available faces; fallback is used while a display face loads.

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
displayNameThe displayName value of FontFamilyDefinition.
facesThe faces value of FontFamilyDefinition.
fallbackThe fallback value of FontFamilyDefinition.
familyThe family value of FontFamilyDefinition.

Examples

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

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

function inspectFontFamilyDefinitionFamily(fontFamilyDefinition: FontCatalog['families'][number]) {
    const value = fontFamilyDefinition['family'];
    console.log('FontFamilyDefinition.family', value);
}

See Also