Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.2
-
Fix Version/s: 5.0.3
-
Component/s: None
-
Labels:None
-
Environment:JAI
-
Salesforce Case Reference:
Description
Here is the user's description of the issue:
I have two fonts: "GRR Fonts" and "GRR Fonts 2". Both fonts could not be found during image rendering and Lucida Bright was used as substitution.
The following are the ICEPdf logs that I found:
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: lucidabright family: Plain for: lucidabright- Plain
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found java font: LucidaBright for named font GRR\u00onFonts2
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: lucidabright family: Plain for: lucidabright- Plain
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found java font: LucidaBright for named font GRR\u00onFonts
The following items are attached:
1. PDF document that contains characters in GRR Fonts and GRR Fonts 2
2. ICEPdf log
I have two fonts: "GRR Fonts" and "GRR Fonts 2". Both fonts could not be found during image rendering and Lucida Bright was used as substitution.
The following are the ICEPdf logs that I found:
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: lucidabright family: Plain for: lucidabright- Plain
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found java font: LucidaBright for named font GRR\u00onFonts2
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: lucidabright family: Plain for: lucidabright- Plain
May 31, 2013 4:10:48 PM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found java font: LucidaBright for named font GRR\u00onFonts
The following items are attached:
1. PDF document that contains characters in GRR Fonts and GRR Fonts 2
2. ICEPdf log
Activity
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #36355 | Mon Jun 24 15:36:06 MDT 2013 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/Name.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #36354 | Mon Jun 24 15:35:26 MDT 2013 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Name.java
|
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 5.0.3 [ 11070 ] | |
Resolution | Fixed [ 1 ] |
Tyler Johnson
made changes -
Attachment | 12199-pdfviewerfontcache.properties [ 16089 ] |
Tyler Johnson
made changes -
Attachment | 12199-icepdf.log [ 16088 ] |
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case Reference | 5007000000TuGZnAAN |
Tyler Johnson
created issue -
The font name is represented as a name object "/GRR#20Fonts#202". Name objects have special escaping for certain characters like ( or ' but can also represent unicode values.
The Name code that we currently had would convert #20 hex to /u0020 in unicode but instead the code should have been converting the #20 to (char)32 or a space. I've updated the conversion code to convert anything < 127 to a character code and everything else Uniocde.
The patch makes sure that in this case the #20 gets correctly converted to a space and for substitution, the space is removed when comparing to the font properties names.