Disable systemfont folder


I run aspose slides in a spring boot app within a cloud runtime (SAP Cloud Neo).

There slides try to access the system fonts and failed.
Caused by: java.io.FileNotFoundException: /etc/fonts/conf.d/69-unifont.conf (Permission denied)

I load own fonts from ressources but the system try to access the system fonts and failed.
File file = new ClassPathResource(“fonts/”).getFile();
String fontPath = file.getPath();
String[] fontDir = new String[] { fontPath };
Is it possible to disable the system fonts or someone any other solution ?




I have observed your requirements and like to share that the issue that is incurring on your end is permission related and in fact not related to Aspose.Slides. The API is able to load installed fonts or you can copy fonts in some folder (that has permission for access) and load them externally.