googlefonts / googlefonts/compreffor

--decompress does more than just desubroutinize

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
24
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I noticed that when the "-d" (or "--decompress") option is provided to compreffor, then the output file size gets much smaller.
The reason is that the `fontTools.subset.Options` include a lot more optimizations which are performed by default, besides the requested desubroutinization.
From a user point of view, the "decompress" option should only desubroutinize the CFF table, and not also perform the rest of the optimizations.
I think the best way to address this would be to make the desubroutinization independent from the fontTools.subset module, as @behdad already noted here https://github.com/behdad/fonttools/issues/283.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.