We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not able to apply FontSubstRule for asian fonts

Trying to replace the MS Gothic with Albany WT K font and save as PDF format.
When i save as PDF format the Asian Japanese characters are not displayed.
PFA sample doc and ttf file.
Sample program.
//loading destination ALBANWTK.ttf from albany folder.
FontsLoader.loadExternalFonts(new String[] { “/fonts/albany” });
//Load source font to be replaced
IFontData sourceFont = new FontData(“MS Gothic”);
//Load the replacing font
IFontData destFont = new FontData(“Albany WT K”);
//Add font rule for font replacement
IFontSubstRule fontSubstRule = new FontSubstRule(sourceFont, destFont, FontSubstCondition.WhenInaccessible);
//Add rule to font substitute rules collection
IFontSubstRuleCollection fontSubstRuleCollection = new FontSubstRuleCollection();
fontSubstRuleCollection.add(fontSubstRule);
//Add font rule collection to rule list
Presentation pres = new Presentation("/tmp/MS Gothic.pptx");
IFontsManager fmg = pres.getFontsManager();
fmg.setFontSubstRuleList(fontSubstRuleCollection);
pres.save("/tmp/gothic2AlbanySubRule.pdf", SaveFormat.Pdf);

Tested environment: java version “1.7.0_72” and OS linux6 64bit.

Hi,


Thank you for your interest in Aspose.Slides.

I have observed your comments and the files shared by you. I request you to please try using Aspose.Slides for Java 15.6.0 on your end and then share your kind feedback with us so that I may investigate it further on my end once the requested information is shared by you.

Please let us know if the issue persists. We will be happy to assist you further.

Best Regards,

Verified with 15.6.0 not working.

Hi,

I have observed your requirements and worked with the presentation file shared by you. I have been able to reproduce the issue. A ticket with ID SLIDESJAVA-34962 has been logged 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 automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-34962) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.