pdf-raku / PDF-Content-raku

Basic PDF content editing and rendering support, including text, images, fonts and general graphics
Artistic License 2.0
2 stars 3 forks source link

Investigate cmap encoding for core fonts #10

Closed dwarring closed 3 years ago

dwarring commented 3 years ago

Worth looking at how various readers will display unicode characters that are not part of the standard core fonts and/or mac/win encoding. Worth experimenting yo see if a cmap encoding option adds value (single or double byte).

dwarring commented 3 years ago

Have done more work in PDF::Font::Loader to support CMAP encoding v0.4.2. But wont extend it to PDF::Content.

We need to know the metrics. PDF::Font::Loader has an available font object but PDF::Content only knows about the core fonts and filters other characters. This is appropriate so font metrics are known at all times.

So will keep PDF::Font::Loader as a minimum requirement for CMAP encoding.