default font-family

How do I change the default font family?

1 Reply 1 reply marked as answer

SM Suriya Murugan Syncfusion Team September 23, 2020 02:10 PM UTC

 
Hi Steve, 
 
Syncfusion Greetings! 
 
You can change the default font family of DocumentEditor by using below code snippet. 
 
 
 
//Sample Code snippet 
this.container.documentEditor.setDefaultCharacterFormat({fontFamily:'Algerian'}); 
this.container.documentEditor.openBlank(); 
 
Please check it in below sample. 
 
 
 
 
Please let us know if will helpful for you. 
 
 
Regards, 
 
Suriya M. 


Marked as answer
Loader.
Up arrow icon