Please refer to the following java code for your need.
//Instantiating a Workbook object Workbook workbook = new Workbook(); //Accessing the first worksheet in the book. Worksheet sheet1 = workbook.getWorksheets().getSheet(0); Cells cells = sheet1.getCells(); //Setting the font name to "Century" Style style = cells.getCell("A1").getStyle(); style.getFont().setName("Century"); StyleFlag flag = new StyleFlag(); flag.setFontName(true);