Hi,
In the attached presentation, I have a paragraph containing one symbol and then some text. When I access this paragraphs’ portions via code, symbol and the text are in the same portion. I cannot differentiate between fonts of the symbol and the text. It returns “Wingdings” for this portion, but the text is written in Calibri font.
Should the symbol and the text be in separate portions?
Here’s the code I used:
String presentationPath = “SpecialCharTest.ppt”;
InputStream inputStream = new FileInputStream(presentationPath);
Presentation presentation = new Presentation(inputStream);
ISlide slide = presentation.getSlides().get_Item(0);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(0);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
System.out.println(portion.getPortionFormat().getSymbolFont().getFontName());
Output:
ictory
Wingdings
Can you check this?
Thanks,
Zeljko