pdf-raku / PDF-Font-Loader-raku

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

More forgiving handling of TrueType font collections #7

Closed dwarring closed 3 years ago

dwarring commented 3 years ago

The main issue with handling TrueType collections is that it's unsafe to embed them.

So firstly, we shouldn't need to throw an error, if the font is being loaded with :!embed.

We may also be better off warning and unsetting the embed flag rather than dying.

I'm also curious to see how TrueType collections interact with subsets. Some more testing needed in the Font::Subset module.

dwarring commented 3 years ago

PDF::Font::Loader can possibly be even more forgiving of unembedded fonts, handling any font able to be loaded by Font::FreeType.

dwarring commented 3 years ago

Fixed in 0.5.0 release