FontRegistry Class
Resolves document font faces and shapes glyph runs identically in browser and server rendering.
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.
Constructor
new FontRegistry()
This overload has no parameters.
Returns: FontRegistry.
Members
Properties
| Property | Description |
|---|---|
| revision | Monotonic face-catalog revision, updated only when a face is registered. |
Methods
Examples
Pass the FontRegistry value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
;
function inspectFontRegistryRevision(fontRegistry) {
const value = fontRegistry['revision'];
console.log('FontRegistry.revision', value);
}
See Also
alias: Map an original family to a registered target without changing workbook styles. Unknown targets and cyclic substitutions throw.