poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60282] New: getFontHeight() has wrong type
Date Thu, 20 Oct 2016 12:04:22 GMT

            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.ru@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

  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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message