Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0 PDFBox
-
None
-
Patch
Description
- The attached PFB font can be opened in FontForge but PfbParser in fontbox fails to read it.
- The problem is that fontbox assumes there are three records (ascii, binary, ascii) in the PFB file but the binary part is split into multiple shorter chunks (i.e. ascii, binary, ..., binary, ascii).
- I didn't find that this is forbidden and according to FontForge behavior it seems to be valid.
- The fix seems to be easy, it is probably sufficient to concatenate the binary records together in PfbParser and the result will work correctly.