From e71b6bd9383f441feb8d938163da557852d6176c Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Date: Tue, 3 Aug 2021 16:42:29 +0200 Subject: [PATCH] Use pip to install brotli and zopfli The recommended way to install those dependencies is to use pip instead of building from the sources --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 882610b..e791106 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,10 @@ pip install fonttools ```sh # Additional installation for --flavor=woff2 -git clone https://github.com/google/brotli -cd brotli -python setup.py install +pip install brotli # Additional installation for --flavor=woff --with-zopfli -git clone https://github.com/anthrotype/py-zopfli -cd py-zopfli -git submodule update --init --recursive -python setup.py install +pip install zopfli ``` If you want to read an in-depth tutorial on the installation steps above, please read [How I set up Glyphhanger on macOS for optimizing and converting font files for the Web](https://www.sarasoueidan.com/blog/glyphhanger/) by Sara Soueidan. @@ -249,4 +244,4 @@ Or, alternatively `npx mocha`. ## Alternatives to GlyphHanger * [unicode-ranger from Jeremy Wagner](https://github.com/malchata/unicode-ranger) -* [subfont from Peter Müller](https://www.npmjs.com/package/subfont) \ No newline at end of file +* [subfont from Peter Müller](https://www.npmjs.com/package/subfont)