RenderOptionsDefaultFontName Property
The name of the default font.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public string DefaultFontName { get; set; }

Property Value

Type: String
Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during the rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
The following example demonstrates how to set default font.
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();
string guid = @"C:\storage\document.doc";

HtmlOptions options = new HtmlOptions();
options.DefaultFontName = "Tahoma";

List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also