Bug 62139 - The XWPFStylesDocument.getFontSize() method doesn't deal with non-integer Font Sizes
Summary: The XWPFStylesDocument.getFontSize() method doesn't deal with non-integer Fon...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.15-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 13:33 UTC by Adam
Modified: 2018-03-19 14:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2018-02-27 13:33:57 UTC
When using XWPFStylesDocument.getFontSize() with a XWPFRun, the return is always a whole number, even though the font size of the text isn't. In the case I saw, the document contained text at size 10.5, but this method was returning a size of 10.0
Comment 1 Mark Murphy 2018-03-19 13:29:10 UTC
I don't see the class XWPFStylesDocument in POI. Maybe you are using a package that enhances POI, but uses POI naming conventions. Can you tell us in which package you are finding this class?
Comment 2 Adam 2018-03-19 14:13:17 UTC
Package is org.apache.poi.xwpf.converter.core.styles
Comment 3 Nick Burch 2018-03-19 14:14:56 UTC
You need to upgrade - you are using an old version of the XDocReports converter that confusingly used our namespace.

If the problem still occurs after you've upgraded, you need to report that to the correct project
Comment 4 Adam 2018-03-19 14:18:49 UTC
No, you're right. This does not appear to be a POI package. My mistake. I've updated the ticket to resolved.