This is my code:
com.aspose.cells.CellsHelper.setFontDir("/usr/share/fonts");
log.info(com.aspose.cells.CellsHelper.getFontDir());
log.info(com.aspose.cells.CellsHelper.getFontDirs());
log.info(com.aspose.cells.CellsHelper.getFontFiles().toString());
The first two outputs confirm that FontDir is correctly set to /usr/share/fonts, however the last output is blank, given that this is the content of /usr/share/fonts on my machine:
abattis-cantarell jomolhari lohit-bengali lohit-punjabi paktype-naqsh stix
cjkuni-uming khmeros lohit-devanagari lohit-tamil paratype-pt-sans thai-scalable
default liberation lohit-gujarati lohit-telugu sil-abyssinica vlgothic
dejavu lklug lohit-kannada nhn-nanum sil-padauk wqy-zenhei
google-droid lohit-assamese lohit-oriya opensymbol smc
(they're all directories)
Does Cells only recognize truetype fonts?
My Java application runs on a PAAS which I am unable to customize the system image. Is there a way to dynamically load true type fonts to Java and let Aspose Cells use them?
Thank you very much!