Free Support Forum - aspose.com

ClassCastException when I try to use FontsLoader.loadExternalFonts

I try to download fonts to my application use FontsLoader.loadExternalFonts method and I get this exception:
java.lang.ClassCastException: [I cannot be cast to java.lang.Integer
at com.aspose.slides.internal.nz.class.do(Unknown Source)
at com.aspose.slides.internal.nz.strictfp.if(Unknown Source)
at com.aspose.slides.internal.nz.strictfp.do(Unknown Source)
at com.aspose.slides.internal.nz.continue.do(Unknown Source)
at com.aspose.slides.internal.n3.final.do(Unknown Source)
at com.aspose.slides.internal.n3.final.do(Unknown Source)
at com.aspose.slides.internal.n3.final.do(Unknown Source)
at com.aspose.slides.FontsLoader.do(Unknown Source)
at com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source)
at com.cs.msconverter.tools.FontsUpdate.run(FontsUpdate.java:32)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

There are a lot of fonts in my application (around 1gb). Some fonts are in subfolders.

My environment:
aspose-slides-20.06-jdk16
java version “1.8.0_102”
Java™ SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

I found out what font is throwing these exceptions. How I can upload this font?
Example files: fonts-broken.zip (3.7 MB)

@Alexander9132

Please upload the font on some file server and share the download link with us for further investigation on our end.