TX Sheet Control

FontFaceDefinition Interface

Interface

One catalog font face; variable fonts retain weight/stretch ranges and an optional TrueType document source.

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
documentUrlOptional TrueType equivalent for a WOFF2 display face.
formatThe format value of FontFaceDefinition.
stretchThe stretch value of FontFaceDefinition.
styleThe style value of FontFaceDefinition.
urlThe url value of FontFaceDefinition.
weightThe weight value of FontFaceDefinition.

Examples

Pass the FontFaceDefinition 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 inspectFontFaceDefinitionDocumentUrl(fontFaceDefinition: FontCatalog['families'][number]['faces'][number]) {
    const value = fontFaceDefinition['documentUrl'];
    console.log('FontFaceDefinition.documentUrl', value);
}

See Also