Disable systemfont folder


#1

Hello,
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();
FontsLoader.clearCache();
String fontPath = file.getPath();
String[] fontDir = new String[] { fontPath };
log.error(fontPath);
FontsLoader.loadExternalFonts(fontDir);
Is it possible to disable the system fonts or someone any other solution ?

Regards
Gerald


#2

@ederg,

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.