Merge pull request #303 from googlefonts/nototools_pypi

Fetch nototools from pypi
This commit is contained in:
rsheeter 2020-05-30 14:47:08 -07:00 committed by GitHub
commit 4d8df7842e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 17 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
*.pyc *.pyc
waveflag waveflag
build/ build/
venv/

View file

@ -128,8 +128,6 @@ compressed: $(ALL_COMPRESSED_FILES)
check_compress_tool: check_compress_tool:
ifdef MISSING_ZOPFLI ifdef MISSING_ZOPFLI
$(error "Missing $(ZOPFLIPNG). Try 'brew install zopfli' (Mac) or 'sudo apt-get zopfli' (linux)") $(error "Missing $(ZOPFLIPNG). Try 'brew install zopfli' (Mac) or 'sudo apt-get zopfli' (linux)")
else
@echo "using $(ZOPFLIPNG)"
endif endif
check_vs_adder: check_vs_adder:

View file

@ -7,27 +7,25 @@ Building Noto Color Emoji requires:
- Python 3 - Python 3
- [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) - [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/)
- [pngquant](https://pngquant.org/) - [pngquant](https://pngquant.org/)
- Either [zopflipng](https://github.com/google/zopfli) or [optipng](http://optipng.sourceforge.net/). Zopflipng is better (about 5-10%) but much slower. - [zopflipng](https://github.com/google/zopfli)
## Building NotoColorEmoji ## Building NotoColorEmoji
This project uses a virtual environment to manage dependencies. Use the following steps to get up and running. This project uses a virtual environment to manage dependencies. Use the following steps to get up and running:
Create a virtual environment called `noto-emoji-env`: ```shell
# make sure you have the Prerequisites
python3 -m venv noto-emoji-env # create & activate a virtual environment
python3 -m venv venv
source venv/bin/activate
Activate the virtual environment: # install python requirements
pip install -r requirements.txt
source noto-emoji-env/bin/activate time make -j
```
Install the Python requirements with: Intermediate products (compressed image files, for example) will be put into a build subdirectory; the font will be at the top level.
pip install -r requirements.txt
Then run `make`. NotoColorEmoji is the default target. It's suggested to use -j,
especially if you are using zopflipng for compression. Intermediate products
(compressed image files, for example) will be put into a build subdirectory; the
font will be at the top level.
## Using NotoColorEmoji ## Using NotoColorEmoji

View file

@ -1,2 +1,2 @@
fonttools>=4.7.0 fonttools>=4.7.0
-e git://github.com/googlefonts/nototools.git#egg=master notofonttools>=0.2.4