pdf-raku / PDF-Font-Loader-raku

Font loader for the PDF tool-chain
Artistic License 2.0
1 stars 3 forks source link

Subsetted Identity-H CMaps appear to be incorrect. #11

Closed dwarring closed 3 years ago

dwarring commented 3 years ago

As a simple experiment, if I cut and paste xpdf display from tmp/subset.pdf, adter running t/subset.t, I get junk for the first (ttf) and third, identity-h encoided fonts.

Seems the CMaps are not correct.

dwarring commented 3 years ago

Just uncommited changes. Actually OK, on master.

dwarring commented 3 years ago

^^ There was a mix-up somewhere. Actual problem was inverted %!charset in Identity16 decoder. Some of the subsetting logic had also been inverted to compensate and hide the error.