FontFaceDefinition 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
| Property | Description |
|---|---|
| documentUrl | Optional TrueType equivalent for a WOFF2 display face. |
| format | The format value of FontFaceDefinition. |
| stretch | The stretch value of FontFaceDefinition. |
| style | The style value of FontFaceDefinition. |
| url | The url value of FontFaceDefinition. |
| weight | The 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);
}