GroupDocs.Viewer for Java 3.2.2 Release Notes

Major Features

There are 1 new feature in this release:

  • Ability to specify custom fonts path

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERJAVA-1201Add ability to specify custom fonts pathNew Feature

Public API and Backward Incompatible Changes

How to specify custom fonts path

How to specify custom fonts path

// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.setStoragePath("C:\\storage");

// Add custom fonts directories to FontDirectories list
config.getFontDirectories().add(fontPaths);

// Init viewer handler with config
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);