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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





141827 Jan 7,2019 07:27 AM UTC Jan 7,2019 09:59 AM UTC JavaScript - EJ 2 1
Tags: DocumentEditor
Asked On January 7, 2019 07:27 AM UTC

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

Ramya Thirugnanam [Syncfusion]
Replied On 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. 
Ramya T 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon