Dear Aspose Support Team,
I hope this message finds you well. We have encountered a bug in the Aspose.Slides for Java library, specifically related to incorrect thumbnail rendering after export when using the calibri font. Below are the details of the issue, along with the necessary information for your review:
Reproduction Steps:
-
Example presentation with a superscript in Title:
import.zip (39.0 KB)
The import.pptx file contains 1 slide where the title contains a superscript. -
Used calibri Font:
calibri.ttf.zip (776.5 KB) -
Code triggering the bug:
@Test
public void thumbnailBugReproduction10() throws Exception {
String importPath = "/path/to/import.pptx";
String slidesPath = "/path/to/expot-slides";
String fontPath = "/path/to/fonts/calibri/calibri.ttf";
var loadOptions = new LoadOptions();
// load external font
try (java.io.FileInputStream fis = new java.io.FileInputStream(new File(fontPath))) {
byte[] fontBytes = fis.readAllBytes();
loadOptions.getDocumentLevelFontSources()
.setMemoryFonts(new byte[][] { fontBytes });
}
try (var is = new FileInputStream(new File(importPath))) {
var pres = new Presentation(is, loadOptions);
for (var slide : pres.getSlides()) {
slide.getImage(2, 2).save(
new FileOutputStream(new File(slidesPath + "/slide-" + slide.getSlideNumber() + ".jpg")),
ImageFormat.Jpeg);
}
}
}
Please Change the import/export paths accordingly!
Issue Description:
-
Expected Chart Appearance:
image.png (94.5 KB) -
Aspose Exported Thumbnail Appearance:
Screenshot 2026-04-20 at 11.51.49.jpg (29.2 KB)
Environment:
- Aspose.Slides version: 26.4
- Java version: 25.0.1
- Operating Systems: Ubuntu 24
Your prompt attention to this matter is highly appreciated. Please let us know if any additional information is required to investigate and resolve this issue.
Thank you for your assistance.
Best regards,
Justin Voitel
Domino informatics GmbH