fcl-pdf FontSubset invalid checksums
Original Reporter info from Mantis: Petr-K
-
Reporter name:
Original Reporter info from Mantis: Petr-K
- Reporter name:
Description:
I tested subset font by by Microsoft Font Validator 1.0 and by FontVal-2.1.1.
Both reports invalid table checksums and head font checksum.
I reimplemented checksum calculation by TrueType 1.0 Font Files Technical Specification. Calculation bust be 32 bit unsigned int with overflow, not int64 with clipping.
Result was tested in these validators.
Additional information:
Some pdf viewers (acroread4/ms edge/wacom sign pro pdf) cannot display correctly compressed PDFs with font subsets. I'l post multiple patches to solve this issue.
This is the last patch. For now :).
I plan to add trailer /ID and /Metadata to be more PDF/A.
Mantis conversion info:
- Mantis ID: 34063
- Build: Revision: 36503
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39530 (#66efdeff)
- Target version: 3.2.0