Java: Font Fall Backs from Calibri to Carlito not working

Hi there,

we have a commercial license for Aspose.Total.Java in place.

Up until now we only used our tool on a windows-box and everything works fine. Now we are migrating this to linux and experiencing problems when converting docx to pdf with font-replacements:

The docx contains paragraphs in Calibri which should be mapped to Carlito.
But instead Calibri is mapped to DejaVuSans.

We installed carlito with “yum i google-crosextra-carlito-fonts”

When running “fc-match Calibri” on the command line i get as result Carlito.

So font-config seems to be setup correclty.

Could you pls tell me, what am i doing wrong herre ? Is Aspose using the font-config?

BR, Andreas

@andreaseternach

Please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you are converting documents to PDF. Please refer to the following articles:
Using TrueType Fonts
Manipulating and Substitution TrueType Fonts

If you still face problem, please ZIP and attach your input Word document, problematic and expected output documents here for testing. We will investigate the issue and provide you more information on it.