FontFaceDefinition Interface
One catalog font face; variable fonts retain weight/stretch ranges and an optional TrueType document source.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
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 { FontFaceDefinition } from '@txtextcontrol/tx-sheet-control';
function inspectFontFaceDefinitionDocumentUrl(fontFaceDefinition: FontFaceDefinition) {
const value = fontFaceDefinition['documentUrl'];
console.log('FontFaceDefinition.documentUrl', value);
}