https://bz.apache.org/bugzilla/show_bug.cgi?id=60282
Bug ID: 60282 Summary: getFontHeight() has wrong type Product: POI Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P2 Component: HSSF Assignee: dev@poi.apache.org Reporter: najh...@gmail.com short getFontHeight() Get the font height in unit's of 1/20th of a point. Type short is wrong. There must be a double. The font size can be for example 8.5. Now it returns 8, throwing a fractional part. 170 / 20 =8,5 from HSSFFont: public short getFontHeightInPoints() { return ( short ) (font.getFontHeight() / 20); } from XSSFFont: public short getFontHeightInPoints() { return (short)(getFontHeight()/20); } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org