FontFamilyDefinition 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
| Property | Description |
|---|---|
| displayName | The displayName value of FontFamilyDefinition. |
| faces | The faces value of FontFamilyDefinition. |
| fallback | The fallback value of FontFamilyDefinition. |
| family | The 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);
}