google / woff2

MIT License
1.52k stars 188 forks source link

Compress glyf table generically if it fails specifically #160

Open behdad opened 1 year ago

behdad commented 1 year ago

I'm trying to compress fonts with new formats of glyf table that I'm developing. It currently fails. I expect it to compress the glyf table as a generic table with brotli instead.

behdad commented 1 year ago

The library code allows disabling it: https://github.com/google/woff2/blob/4721483ad780ee2b63cb787bfee4aa64b61a0446/include/woff2/encode.h#L24