-
Notifications
You must be signed in to change notification settings - Fork 5
Specify Default Fonts
shoaibkhan-aspose edited this page Dec 12, 2014
·
1 revision
Document doc = new Document(dataPath + "document.doc");
// If the default font defined here cannot be found during rendering then the closest font on the machine is used instead.
FontSettings.setDefaultFontName("Arial Unicode MS");
// Now the set default font is used in place of any missing fonts during any rendering calls.
doc.save(dataPath + "Rendering.SetDefaultFont_Out.pdf");
doc.save(dataPath + "Rendering.SetDefaultFont_Out.xps");
Download Source Code
For further releases and updates, please follow these new repositories:
- Aspose.Words Java for Apache POI
- Aspose.Cells Java for Apache POI
- Aspose.Slides Java for Apache POI
- Aspose.Email Java for Apache POI
- For documentation, please visit Aspose Docs.
- Raise your queries and suggest more examples via Aspose Forums or via new social coding sites.