Hi
Thanks for your information!
The problem that character covered by each other is resolved with the following code and the font in attachment in Linux environment.
String[] _fontDir = new String[] { “fontsForTest” };
FontsLoader.loadExternalFonts(_fontDir);
Presentation pre = new Presentation(“sample1_pusheen.pptx”);
FontSubstRuleCollection fontRuleColl = new FontSubstRuleCollection();
for(final IFontData fontData :pre.getFontsManager().getFonts()){
fontRuleColl.add(new IFontSubstRule() {
@Override
public IFontData getSourceFont() {
return fontData;
}
@Override
public int getReplaceFontCondition() {
return FontSubstCondition.WhenInaccessible;
}
@Override
public IFontData getDestFont() {
return new FontData(“HanWangHeiLight”);
}
});
}
pre.getFontsManager().replaceFont(fontRuleColl);
String dirName = UUID.randomUUID().toString();
File file = new File("" + dirName);
file.mkdirs();
for (int i = 0; i < pre.getSlides().size(); i++) {
pre.getSlides().get_Item(i)
.writeAsSvg(new FileOutputStream("" + dirName + “/” + (i + 1) + “.svg”));
}
However, there is still some problems.
1. The Bullet icons can not show correctly.
2. I noticed that if you remove or adjust attribute “textLength” in the previous svg files, the text covering problem would be fixed.
Is it possible we can do some fix when rendering svg files, so that the “textLength” attributes can be produced correctly? (Without any font replacing).