RenderOptionsDefaultFontName Property
The name of the default font.

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

Property Value

Type: String
Remarks
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.
Examples
The following example demonstrates how to set default font.
C#
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