Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

woff2_decompress fails to unpack superOTC #141

Open
davelab6 opened this issue May 18, 2021 · 1 comment
Open

woff2_decompress fails to unpack superOTC #141

davelab6 opened this issue May 18, 2021 · 1 comment

Comments

@davelab6
Copy link
Member

davelab6 commented May 18, 2021

https://twitter.com/ken_lunde/status/1394496314197508103?s=19

Interestingly, @googlefonts’ woff2 project can convert the #SourceHanSans Super OTC into a WOFF2 Collection by executing woff2_compress, but executing woff2_decompress fails to convert the resulting WOFF2 Collection back into an OpenType Collection.

Related to #37

@davelab6
Copy link
Member Author

The woff_decompress silent failure is due to kDefaultMaxSize being set to 30 × 1024 × 1024, meaning 30MB, and this limit applies to the uncompressed size of the WOFF2. I built two TTCs with sizes just under and just over this threshold: the former succeeded and the latter failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant