Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1
-
Fix Version/s: 4.2
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:Tested under java 1.5.0_06 on XP SP2.
-
Assignee Priority:P1
-
Workaround Exists:Yes
-
Workaround Description:Change org.icepdf.core.pbobjects.fonts.ofont.Font:468 "java.awt.Font.PLAIN" to "style"
Description
When viewing pdfs created using iText (all I have for testing with), any style information for a core 14 font is ignored, ie plain version of font is always displayed. System fonts show bold/italic text as expected.
I found in the source the cause of this issue: org.icepdf.core.pbobjects.fonts.ofont.Font:466 includes java.awt.Font.PLAIN in the constuctor, where this should use the previously determined style variable for this value.
I found in the source the cause of this issue: org.icepdf.core.pbobjects.fonts.ofont.Font:466 includes java.awt.Font.PLAIN in the constuctor, where this should use the previously determined style variable for this value.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Thanks for bringing this issue to my attention. A similar fix was make in
PDF-53but for some reason it was only added to a few of the new Font instances, not really sure why. I used the same logic asPDF-53to address this issue. My initial testing looks like this will be a pretty low risk change but I'll have to wait for a full QA run to be sure.