You can specify the default font name for a document. GroupDocs.Viewer uses this font during rendering instead of any not installed fonts. For example, if the document includes a font containing non-English characters, specify the default font name to ensure that GroupDocs.Viewer replaces any missing font with one which has the same character set.
The following code snippet shows how to set the default font name:
usingGroupDocs.Viewer;usingGroupDocs.Viewer.Options;// ...using(Viewerviewer=newViewer("sample.pptx")){// Create options for rendering HTML document with embedded resourcesHtmlViewOptionsviewOptions=HtmlViewOptions.ForEmbeddedResources();// Specify a default font name is the optionsviewOptions.DefaultFontName="Courier New";// Render input PPTX to output HTMLviewer.View(viewOptions);}
ImportsGroupDocs.ViewerImportsGroupDocs.Viewer.Options' ...
ModuleProgramSubMain(argsAsString())UsingviewerAsViewer=NewViewer("sample.pptx")' Create options for rendering HTML document with embedded resources
DimviewOptionsAsHtmlViewOptions=HtmlViewOptions.ForEmbeddedResources()' Specify a default font name is the options
viewOptions.DefaultFontName="Courier New"' Render input PPTX to output HTML
viewer.View(viewOptions)EndUsingEndSubEndModule
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.