I am providing Custom fonts while conversion (to pdf) using the following code:
List<String> customFontDirectoryPathList = new ArrayList<>();
customFontDirectoryPathList.add("/Users/TestFonts");
ConverterSettings settings = new ConverterSettings();
settings.setFontDirectories(customFontDirectoryPathList);
This works fine.
I wanted to understand if there is any way we can provide Font resources using steams. I found a class StreamFontResource, but, not sure of how to use it in this context. Any code snippet or Examples will be very helpful.
Thanks