FontManager Interface
Loads document fonts and exposes font choices, layout metrics and deterministic document rendering assets.
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 |
|---|---|
| ready | Resolves after runtime catalog discovery. Rejects on missing or malformed catalogs. |
Methods
| Method | Description |
|---|---|
| choices | The choices operation of FontManager. |
| ensureStyle | The ensureStyle operation of FontManager. |
| ensureWorkbook | The ensureWorkbook operation of FontManager. |
| onChange | The onChange operation of FontManager. |
| state | The state operation of FontManager. |
Examples
Pass the FontManager value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
async function inspectFontManagerReady(fontManager: { ready: unknown }) {
const value = await fontManager['ready'];
console.log('FontManager.ready', value);
}