Cells cannot see any fonts in my Linux's fonts directory

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!

Hi,

Thanks for your posting and using Aspose.Cells for Java.

Please download and use the latest fix:
Aspose.Cells
for Java v7.3.0.4

and let us know your feedback.

If your problem still occurs, then please provide us your sample runnable project and the source xls/xlsx files used. We will soon look into this issue and help you asap.

We have also logged your question relating to fonts mentioned in your other thread in our database with the issue id: CELLSJAVA-40288

We will look into it and give you advice asap.