Free Support Forum - aspose.com

SetFontFolder not working for graphics


#1

Hi

We’re using Aspose.Cells for .NET, version 18.9.0
In order to export to PDF with the right fonts, without installing them on the server, we are using:

FontConfigs.SetFontFolder(pathToRobotoFamily, true);

It works great with all cells of the spreadsheet, but it has no effect on legend and titles of the graphs. Sheet to be exported is the first one.

Font folder contains 18 .ttf of the Roboto family.

Sample excel: sample.zip (29.5 KB)

Thank you


#2

@DeliaZgz,

Thanks for the template file.

Please note, all the underlying fonts (used in the workbook) should be installed/available on the server for Excel to PDF rendering and Sheet to image conversion.

Please sure all the Roboto family and other font files (.ttf) should be installed on the Server before conversion, it will work fine. If you still find the issue, kindly do share all the underlying fonts (you may zip all the font files) used in the template file (you may upload to some file sharing service and provide the Download link), we will check it soon. Also provide your output PDF file by Aspose.Cells APIs.