We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to set default font name for entire document not reflecting

Hi Team,
I’ve requirement, how can I add font of Dax-Regular for entire document as default font.

Case 1: If I convert word to pdf, font type should be Dax-Regular only. It should not change the font-type.

Please share sample code in java

@csaspose You can set default font in the Document.Styles.getDefaultFont() property.
Also, if you would like your font to be used upon rendering the document as a default substitution font, you can set in in the DefaultFontSubstitutionRule. In this case if the font specified in the document is not available, Aspose.Words will use the specified default font of there are no alternatives.