Closed dwarring closed 4 years ago
Currently looking at the Perl Font::TTF module. That's what PDF::API2 uses for subsetting.
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.
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.
Work underway on font-subset branch
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