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

Control of fonts

Is an update to the SfRichTextEditor coming that will allow control of the fonts? Our Xamarin.Forms app has embedded fonts in it that we are able to use successfully within all the XAML elements of the app. It would be great to specify fonts for each of the styles in the editor, and also great to be able to specify our own styles.

Barring that, can you explain how it decides to choose the default font? On UWP, my project uses Times New Roman for the Paragraph style. On Android it varies by device. I have two Android 9 test devices, a Samsung tablet, and an e-Ink tablet device. Both use a sans serif font as expected on Android, but one of them is always bold, no matter the setting of the bold button in the toolbar.

Is the editor based on WebView? If so, then we may be able to adjust the default fonts it uses in our app.

The control you have made is really great, but its lack of customization makes me wish for something else.

Thank you!

1 Reply

DS Devaraj Sekar Syncfusion Team December 23, 2019 12:58 PM UTC

Hi Thaine, 
 
Thank you for contacting Syncfusion support. 
 
S. No 
Query 
Answer 
1.        
Is an update to the SfRichTextEditor coming that will allow control of the fonts? Our Xamarin.Forms app has embedded fonts in it that we are able to use successfully within all the XAML elements of the app. It would be great to specify fonts for each of the styles in the editor, and also great to be able to specify our own styles. 
The mentioned support “Font style customization” is added to our feature list. The status of the feature can be tracked from the below mentioned link. 
 
 
We will let you know once the feature has implemented 
2.        
Barring that, can you explain how it decides to choose the default font? On UWP, my project uses Times New Roman for the Paragraph style. On Android it varies by device. I have two Android 9 test devices, a Samsung tablet, and an e-Ink tablet device. Both use a sans serif font as expected on Android, but one of them is always bold, no matter the setting of the bold button in the toolbar. 
 
 
The fonts used in RTE is default webview font. The default font will be applied based on the specific platforms. Since, it is a webview behavior. 
 
We were unable to reproduce the mentioned font issue from the provided device details. We have prepared a sample based on the details, which can be downloaded from the below link. 
 
 
If the issue persists in the provided sample, kindly provide us the testing device specification to reproduce the exact scenario which will be helpful for us to provide an appropriate solution at earliest. 
3.        
Is the editor based on WebView? If so, then we may be able to adjust the default fonts it uses in our app. 
Yes, “SfRichTextEditor” has been developed using Xamarin forms webview. 
 
Regards, 
Devaraj S 


Loader.
Up arrow icon