pdf-raku / PDF-Font-Loader-raku

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

Investigate font-subsetting #2

Closed dwarring closed 4 years ago

dwarring commented 4 years ago

I'm considering doing a trial implementation with font-forge scripting.

Will most likely be implemented in PDF::Font::Loader::FreeType.cb-finish() method

Intending to create subset branch

dwarring commented 4 years ago

Currently looking at the Perl Font::TTF module. That's what PDF::API2 uses for subsetting.

dwarring commented 4 years ago

Cairo has font subsetting logic that's implemented as a private interface as part of the PDF surface. If is was public we'd be well on our way.

dwarring commented 4 years ago

I'm starting work on a separate Font::Subset Raku module.

Will most likely started with True-type fonts. FreeType lets you read TrueType font table, but not write them. However Cairo does have sample code to write subsetted fonts.

Closing initial investigation. Watch for Font::Subset.

dwarring commented 3 years ago

Work underway on font-subset branch