The following code prints correctly the font name and index.
Fonts fonts = templatePres.getFonts();
for (int i = 0; i < fonts.size(); i++) {
FontEntity fe = fonts.get(i);
System.out.println("Name="+fe.getFontName()+", index="+fe.getFontIndex());
}
Name=Arial, index=0
Name=Tahoma, index=1
But when I change Arial to Tahoma, I still see Arial in the Presentation. Could it be a bug in Aspose.Slides? Please advice.
Paragraph p = shape.getTextFrame().getParagraphs().get(0);
Portion pt = p.getPortions().get(0);
pt.setFontIndex((short) 1);