Closed dwarring closed 3 years ago
Latest PDF::Font::Loader now does a pretty good job of reading that PDF as demonstrated by latest output of PDF::To::Cairo's pdf2image.raku
outout (attached).
I also needed to implement CMAP begincidrange ... endcidrange
mappings to read the fonts from this PDF
Still more work needed to ensure we can write updated CMaps before closing this ticket.
Work underway on cmap-refactor
branch to move CMAP serialization to the encoder. To close this ticket and, more generally, accurately update CMAPs.
partially implemented with 0.5.6 release, which can read, read CMaps, encode/decode, but not update CMaps
I found this Adobe repo which contains a number of standard CMAPs.
Possibly, this module should have built-in support for these encodings which are multibyte and variable.
For now, I can use some examples from here to test multibyte encodings.
Example PDF with variable encoding attached. See font
/F2 8 0 R
on page 1 and CMap9 0 R
ttfont_demo_jp.pdf