Font family drop down list on properties pane

Hello,

I would like to customize the list of fonts in the properties panel (right).

After some research and updating to the latest version (18.2.47), I managed to customize the font list for the modal but not the properties panel by doing this:

this.documenteditorcontainer.documentEditorSettings.fontFamilies = ['Pacifico', 'Cambria'];

How to proceed ?

Thank you in advance for your response.

Regards,

Christophe

3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team August 17, 2020 12:31 PM UTC

 
Hi Christophe, 
 
Please refer the  below sample to customize font family. 
 
 
Code snippet. 

 
<ejs-documenteditorcontainer #documenteditor_default [enableToolbar]=true [locale]="culture" [documentEditorSettings]= "fontFamilies" (created)="onCreate()" (documentChange)="onDocumentChange()" height="600px" style="display:block;"></ejs-documenteditorcontainer> 
 
public fontFamilies={fontFamilies :['Algerian', 'Arial', 'Calibri', 'Cambria', 'Windings']}; 
 
 
Regards, 
 
Suriya M. 


Marked as answer

CD Christophe Deladrier August 21, 2020 01:55 PM UTC

Hi Suriya,

It works fin, thanks a lot !

Best Regards,

Christophe



HC Harini Chellappa Syncfusion Team August 25, 2020 04:57 AM UTC

Hi Christophe, 
 
Most welcome. 
 
Regards, 
 
Harini C 


Loader.
Up arrow icon