Set custom fonts
GroupDocs.Viewer provides the feature to add custom font sources.
The following code snippet shows how to set a custom font source.
FolderFontSource fontSource =
new FolderFontSource(@"C:\custom_fonts", Fonts.SearchOption.TopFolderOnly);
FontSettings.SetFontSources(fontSource);
using (Viewer viewer = new Viewer("sample.docx"))
{
HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
viewer.View(viewOptions);
}