[JAVA] Add a new Font

Hello!


I have load a presentation and want to use specific font.

this:
for (int i = 0; i < pres.getFonts().size(); i++) {
System.out.println(pres.getFonts().get(i).getFontName());
}

returns:
Times New Roman
Siemens Sans
HG Mincho Light J
StarSymbol
Wingdings


what have I to do to use the arial font?

by searching the forum i found this
Free Support Forum - aspose.com

hope this will work in java to

FontEntity arial = new FonEntity(pres, pres.getFonts().get(0));
arial.setFontName(“Arial”);
arial.setCharSet(FontCharSet.ANSI_CHARSET);
arial.setFamily(FontFamily.DONTCARE);
arial.setPitch(FontPitch.DEFAULT_PITCH);
arial.setQuality(FontQuality.ANTIALIASED_QUALITY);
int index = pres.getFonts.add(arial);