Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.1.2
-
Fix Version/s: 6.0
-
Component/s: Font Engine
-
Labels:None
-
Environment:PRO
-
Support Case References:Support Case #13389 - https://icesoft.my.salesforce.com/50070000019FFTE
Description
The PDF in question loads without error but fails to render the glyphs of any of the embedded fonts. There are no errors during the parsing of the file but after a little debugging the required loca table is not found and those the font file doesn't contain any valid instructions for creating the glyphs.
After taking a closer look a the table directory of the TrueType font it became apparent that there where entries missing and some that weren't defined in the specification. On a hunch I checked the OpenType specification and it turns out the Font is miss labeled and is actually a OpenType font.
I'll need to through an exception in the TrueType parsing if there is no loca table. This exception will bubble up to the FontFactory at which point we can try and parse the font as a OpenType font.