A FontIndex is the preferred way to add additional fonts to the system.
Document Authoring can efficiently load a single index of available fonts, and will then only load the actually
required fonts as they are needed by calling loadFn with the font name. loadFn must return a BlobInput for
the font file requested.
In order to generate a font index from a set of fonts you want to provide to your users, use the Document Authoring CLI utility:
A
FontIndexis the preferred way to add additional fonts to the system.Document Authoring can efficiently load a single
indexof available fonts, and will then only load the actually required fonts as they are needed by callingloadFnwith the font name.loadFnmust return aBlobInputfor the font file requested.In order to generate a font index from a set of fonts you want to provide to your users, use the Document Authoring CLI utility:
This will generate a
font-index.jsonfile that you can then host and load using theFontIndexconfiguration.