For our implementation of documentEditor in our angular app we need to set custom fonts in documentEditor.
We get custom FontFamilies from the server wich we have to load and pass to the editor. We got this running only when passing the fontFamilies property as Input to the Editor like so:
[documentEditorSettings]="settings" and settings is: { fontFamilies: ["Arial", "Times, "Whateverfont"]},
Probem is that we need to change these settings during runtime when user selects another letter-template there might be another custom-font assosiated with the template. So we tried to set the fontFamilies Property programmatically like so:
this.container.documentEditorSettings.fontFamilies = ["Arial","Times"];
or
this.container.documentEditor.documentEditorSettings.fontFamilies = ["Arial","Times"];
or
this.container.documentEditor.setProperties({ fontFamilies: ["Times"]);
Neither of them worked.
We tried to set this in the "onCreate()" hook were we can be sure that this.container and this.container.documentEditor are not null.
Any ideas how to set/change the fonts during runtime ?
Thanks in advance
Thomas