googlefonts / nanoemoji

A wee tool to build color fonts.
Apache License 2.0
239 stars 19 forks source link

Building WOFF2 fonts #441

Closed JeppeKlitgaard closed 1 year ago

JeppeKlitgaard commented 1 year ago

Would there be appetite for including the code required to compress the generated font into a WOFF2? This could be added as an additional option and should be relatively simple to implement. I realise this may be beyond the scope of nanoemoji.

With COLRv1 gaining adoption across web-browsers, color fonts seem likely to see increased usage on the web in the future.

anthrotype commented 1 year ago

This is possibly out of scope, you can already use the woff2_compress tool from Google/woff2, or alternatively the fonttools ttLib.woff2 compress tool if you need it in python (requires brotli python bindings, install FontTools with the "woff" extra as in pip install fonttools[woff])

JeppeKlitgaard commented 1 year ago

I'll give the google/woff2 tool a look. Feel free to close if you feel this is definitely out-of-scope!

rsheeter commented 1 year ago

Out of scope imho, widely available open tools are availabe for this job.