Skip to content

Fonts

Convert OTF to WOFF2

Install the woff2 command line utility from Google.

sh
brew install woff2

To convert a file into woff2, use the woff2_compress command. To covert a file from woff2, use the woff2_decompress command.

sh
woff2_compress myfont.ttf
woff2_decompress myfont.woff2

Do this as a batch job in fish using loops:

fish
for f in *.otf;
    woff2_compress $f;
end

This work is licensed under CC BY-NC-ND 4.0