Free Support Forum -

Exception "Font not found" using Aspose.Slides for .NET on linux

Hi Team,
We are getting this exception when running Aspose Slides on Linux machines.
As suggested on few other posts, I have used FontLoader.loadExternalFonts() method.
Still its giving us error.

Can you please confirm, to run Aspose on Linux, do we need to have usr/share/font folder as mandatory. We dont have such folder.


I have observed your comments. Can you please visit this thread link for more details. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.

hi Adnam,
I already have visited below link,

and also checking inputs from below link,

Please update me on below queries,
1 Does Aspose.slides mandate to have fonts present (or folder paths to be present )on below locations (Out of three, any one should be present). As we can load fonts from custom location by using FontLoader.loadExternalFonts(string[] locationName), why such mandate.

Paths on Linux OS:

In our scenario, we do not have any such folder on server (above mentioned 3 folder paths),
fonts are installed on /usr/share/groff/current path, still getting error as
“Can not find fonts installed on system”.

Also please update us, how to check custom fonts are loaded or not?



I have observed your comments. Can you please share did you used FontLoader.loadExternalFonts(new String [] {"/usr/share/groff/"}). If you does not have any installed fonts, you should use FontsLoader. By default Aspose.Slides looking for fonts in /usr/share/fonts and /usr/share/X11/
If no fonts installed or found, this error happens - “Can not find fonts installed on system”.
Can you please try to use FontsLoader and also please check privileges (read access to this folder)
because it is Linux, java process may not have read access. If there is still an issue than please share sample project so that we may further investigate and help you out.