Error on HTML example on mac (Cannot read a name from the name table in a font)

Hello support team,

when we try to execute your “HtmlToXPS (GitHub - aspose-html/Aspose.HTML-for-Java: Aspose.HTML for Java examples)” example, we got allways an error. What is our problem? Is it only on mac?

Best regards Sascha

Exception in thread "main" java.lang.AssertionError: Cannot read a name from the name table in a font.
	at com.aspose.html.internal.ms.System.Diagnostics.Debug.fail(Unknown Source)
	at com.aspose.html.internal.p30.z26.m298(Unknown Source)
	at com.aspose.html.internal.p30.z26.m658(Unknown Source)
	at com.aspose.html.internal.p30.z26.m2(Unknown Source)
	at com.aspose.html.internal.p30.z11.m1(Unknown Source)
	at com.aspose.html.internal.p30.z11.<init>(Unknown Source)
	at com.aspose.html.internal.p30.z8.m609(Unknown Source)
	at com.aspose.html.internal.p30.z8.m608(Unknown Source)
	at com.aspose.html.internal.p30.z8.m7(Unknown Source)
	at com.aspose.html.internal.p30.z10.m2(Unknown Source)
	at com.aspose.html.internal.p30.z10.m1(Unknown Source)
	at com.aspose.html.internal.p30.z10.m3(Unknown Source)
	at com.aspose.html.internal.p181.z2.m1(Unknown Source)
	at com.aspose.html.internal.p180.z10.m1(Unknown Source)
	at com.aspose.html.internal.p203.z6.m6(Unknown Source)
	at com.aspose.html.internal.p138.z33.<init>(Unknown Source)
	at com.aspose.html.internal.p138.z5.m1(Unknown Source)
	at com.aspose.html.internal.p138.z5.<init>(Unknown Source)
	at com.aspose.html.internal.p202.z21.m2(Unknown Source)
	at com.aspose.html.internal.p151.z1.<init>(Unknown Source)
	at com.aspose.html.internal.p136.z3.m2292(Unknown Source)
	at com.aspose.html.internal.p137.z1.m1(Unknown Source)
	at com.aspose.html.internal.p230.z1.m1(Unknown Source)
	at com.aspose.html.rendering.HtmlRenderer.render(Unknown Source)
	at de.xima.fc.lizenz.HtmlToXPS.main(HtmlToXPS.java:62)

@swe-1

Thank you for contacting support.

Would you please share with us if you notice the problem with only this specific example file, or if other features are working fine in your environment. Please ensure using latest available version of the API Aspose.HTML for Java 18.5.1 as it has also been updated over GitHub repository and you may clone it anew or download the ZIP and then share your kind feedback with us.

In case the problem persists, please mention your environment details including OS version, JDK/JRE details etc for our reference.