Free Support Forum - aspose.com

ArgumentException: FontFamily 'Segoe UI' not found error after update TASKS

Hi,

After update ASPOSE.Tasks Java from version 18.7 to 19.10. We starts are occuring the following error when trying to convert MPP file to PDF:

java.lang.RuntimeException: class com.aspose.tasks.private_.Exceptions.ArgumentException: FontFamily 'Segoe UI' not found
Parameter name: Segoe UI
com.aspose.tasks.private_.c.j.a(Unknown Source)
com.aspose.tasks.private_.c.j.<init>(Unknown Source)
com.aspose.tasks.private_.c.j.<init>(Unknown Source)
com.aspose.tasks.cix.a(Unknown Source)
com.aspose.tasks.cjc.a(Unknown Source)
com.aspose.tasks.biv.a(Unknown Source)
com.aspose.tasks.biv.c(Unknown Source)
com.aspose.tasks.biv.<init>(Unknown Source)
com.aspose.tasks.bit.<init>(Unknown Source)
com.aspose.tasks.t.<init>(Unknown Source)
com.aspose.tasks.ac.<init>(Unknown Source)
com.aspose.tasks.aa.b(Unknown Source)

We are using macOs Mojave 10.14.6 on our development environment and CentOS 7.6.1810 our test environments. This error starts occuring on both environments, we didin’t made any changes to code.

This is the sample code:

		PdfSaveOptions saveOptions = new PdfSaveOptions();
		saveOptions.setView(ProjectView.getDefaultGanttChartView());
		saveOptions.setFitContent(true);
		saveOptions.setRollUpGanttBars(false);
		saveOptions.setDrawNonWorkingTime(true);
		saveOptions.setPageSize(PageSize.A0);
		saveOptions.setTimescale(Timescale.Days);
		transitionProject.save(outputStream, saveOptions);

We’ve tried setting default font:

		saveOptions.setDefaultFontName("Courier");
		saveOptions.setUseProjectDefaultFont(false);

But this didn’t work.

I’ve shared MPP project that we trying to convert to pdf. It’s empty cause we only want convert to pdf.

test_project.mpp.zip (24.9 KB)

@SoftwarePlant,

I have worked with the sample file shared. An issue with ID TASKSJAVA-1024 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hi,
Could you also tell me what exactly version of Java was used to compile ASPOSE.Task 19.10?
I need to know major and minor version.
E.g. 1.8.0_131

@SoftwarePlant,

I like to share that the issue has been logged for investigation and resolution in our issue tracking system. We request for your patience till the time the investigation is completed and further feedback is shared. We will share the feedback with you as soon as it will be shared.