Cell cell = cells.get("A1");
cell.setValue("This is Aspose test of fonts!");
//Setting the font name to "Times New Roman"
Style style = cell.getStyle();
Font font = style.getFont();
font.setName("Courier New");
font.setSize(24);
font.setBold(true);
font.setUnderline(FontUnderlineType.SINGLE);
font.setColor(Color.getBlue());
font.setStrikeout(true);
//font.setSubscript(true);
cell.setStyle(style);
//Saving the modified Excel file in default format