How To Add New Font-Family From Local ttf(or such) File?

Greetings sirs,

I was wondering if there's any chance to add new font family to document editor but still keep the defaults.

Please help and have a wonderful day.

Thank you.

PS: Sorry for my poor English, it's not my first language


1 Reply

KB Kurthis Banu Abdul Majeeth Syncfusion Team November 18, 2021 04:02 AM UTC

Hi Arashi, 


Thanks for contacting Syncfusion support.  


You can customize font dropdown based on our requirement and add more fonts in Syncfusion document editor like below code snippet.   

  
 Code snippet:  

let container: DocumentEditorContainer = new DocumentEditorContainer({ documentEditorSettings: { fontFamilies: ['Algerian', 'Arial', 'Calibri', 'Cambria', 'Windings'] }});   
 
   

Sample link:  


In this sample,Fonts which are listed in fontFamilies of documentEditorSettings will be displayed on font dropdown of text properties pane.  


API link:  
  
  

   
 Please let us know if you have any questions.  


Regards, 
Kurthis Banu A. 


Loader.
Up arrow icon