Bryant font is changed to Calibri after saving slide as html


#1

Hi, we have a strange issue, that after saving slide to html, all text which was written in Bryant font, is implicitly changed to Calibri.
Using java library:
com.aspose:aspose-slides:19.8

All test data:
data.zip (283.3 KB)
it contains:
test.pptx - actually the presentation
result.html - the slide in html
Bryant - directory with fonts (otf files) which we load before loading of presentation, using method:
FontsLoader.loadExternalFont

Also after loading of a presentation I checked the font in it:
((AutoShape)p.getSlides().get_Item(0).getShapes().get_Item(1)).getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0).getPortionFormat().getLatinFont() and it returned Bryant. So in the model the font is correct. Something happens after converting to html.

Also, have I tried to convert to PDF, load fonts as byte array, or specifying directory - all the same, it’s not working.


#2

@matrdev,

I have worked with source file and have been able to observe issue. A ticket with ID SLIDESJAVA-37745 has been created in our issue tracking system to further investigate to resolve the issue. We will share good news with you soon.