mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-07-08 21:36:59 +00:00
Merge pull request #50 from Maxr1998/master
Add Dockerfile to build the font within a clean, reproducible Docker container
This commit is contained in:
commit
0a3eed56f3
3 changed files with 30 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
add_emoji_gsub.pyc
|
||||||
|
build
|
||||||
|
waveflag
|
||||||
|
|
||||||
|
.git/
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM python:buster
|
||||||
|
RUN apt update && apt install -y \
|
||||||
|
git \
|
||||||
|
zopfli \
|
||||||
|
libcairo2-dev
|
||||||
|
|
||||||
|
# Install nototools
|
||||||
|
RUN git clone https://github.com/googlefonts/nototools.git /nototools
|
||||||
|
WORKDIR /nototools
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
RUN pip install -e .
|
||||||
|
|
||||||
|
# Create output dir
|
||||||
|
RUN mkdir /output
|
||||||
|
|
||||||
|
ADD . /blobmoji
|
||||||
|
WORKDIR /blobmoji
|
||||||
|
|
||||||
|
# Build blobmoji font
|
||||||
|
CMD make -j $(nproc) && cp NotoColorEmoji.ttf /output/
|
|
@ -38,6 +38,11 @@ especially if you are using zopflipng for compression. Intermediate products
|
||||||
(compressed image files, for example) will be put into a build subdirectory; the
|
(compressed image files, for example) will be put into a build subdirectory; the
|
||||||
font will be at the top level.
|
font will be at the top level.
|
||||||
|
|
||||||
|
## Docker build
|
||||||
|
|
||||||
|
Alternatively, you can also build the font within Docker through the provided Dockerfile.
|
||||||
|
Just run `docker build . -t blobmoji && docker run --rm -it -v "$PWD/output:/output" blobmoji`. The resulting font will reside in the 'output' folder in your current working directory.
|
||||||
|
|
||||||
## Using NotoColorEmoji
|
## Using NotoColorEmoji
|
||||||
|
|
||||||
NotoColorEmoji uses the CBDT/CBLC color font format, which is supported by Android
|
NotoColorEmoji uses the CBDT/CBLC color font format, which is supported by Android
|
||||||
|
|
Loading…
Add table
Reference in a new issue