We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to use my own google font in the document editor.

Is there any way to specify a google font-family in document editor. 

1 Reply

RT Ramya Thirugnanam Syncfusion Team January 7, 2019 09:59 AM UTC

Hi Sampurnima, 
 
Yes, it is possible to apply google font in document editor through characterFormat of selection module. We have created a sample to represent this. Please find the code example and sample from the following link. 
 
documenteditor.selection.characterFormat.fontFamily= 'Roboto'; 
 
 
Sample details: 
We have prepared a sample by embed the following google font in the html file  
<link rel='nofollow' href="https://fonts.googleapis.com/css?family=Open+Sans|Poppins|Roboto" rel="stylesheet"> 
 
   
For more information about customizing text formatting, please refer to the below help documentation link 
 
Note:  If google font family is installed on client machine, it will automatically be rendered with the applied font. Otherwise it rendered with document’s default character format. 
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon