Use custom fonts in word processor

Hi,
we would know if there is an option to integrate custom fonts in word processor editor, to give more options to users.
I have make a search in documentation but I don't find anithing.

Regards

1 Reply 1 reply marked as answer

MA Mugunthan Anbalagan Syncfusion Team June 10, 2020 05:43 PM UTC

Hi Stefano, 
Yes, we can add custom font name in font family dropdown by using below code. 
@using Syncfusion.Blazor.DocumentEditor; 
 
<SfDocumentEditorContainer @ref="container" DocumentEditorSettings="@settings" Height="590px"> 
 
</SfDocumentEditorContainer> 
 
@code { 
 
    SfDocumentEditorContainer container; 
 
    DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { FontFamilies = new string[2] { "Roboto", "Open Sans" } }; 
}; 
 

 

Kindly try this solution and let us know if you need further assistance. 
Note:  While applying the custom fonts if the specified font is installed in client machine content rendered in applied font else content rendered with the browser default font. 

Regards, 
Mugunthan A 



Marked as answer
Loader.
Up arrow icon