Skip to content

Commit d404267

Browse files
author
Rajeev Kumar Singh
committed
use setFontHeightInPoints method
1 parent 8bc5b0b commit d404267

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Diff for: poi-generated-file.xlsx

3 Bytes
Binary file not shown.

Diff for: src/main/java/ExcelWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Hyperlink, RichTextString etc in a format (HSSF, XSSF) independent way */
5050
// Create a Font for styling header cells
5151
Font headerFont = workbook.createFont();
5252
headerFont.setBold(true);
53-
headerFont.setFontHeight((short) 16);
53+
headerFont.setFontHeightInPoints((short) 14);
5454
headerFont.setColor(IndexedColors.RED.getIndex());
5555

5656
// Create a CellStyle with the font

0 commit comments

Comments
 (0)