From 290926b2da89fbf6124faa47211d151e4bee0085 Mon Sep 17 00:00:00 2001 From: Jake Elder Date: Thu, 2 Jul 2020 13:22:12 +0700 Subject: [PATCH 1/2] Add build Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ README.md | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb075ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:18.04 + +RUN apt-get update && \ + apt-get install software-properties-common -y && \ + add-apt-repository ppa:fontforge/fontforge -y && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + fontforge \ + woff-tools \ + woff2 \ + ttfautohint \ + make \ + zip + +WORKDIR /fantasque + +VOLUME /fantasque/Release + +COPY . /fantasque + +CMD ["make"] diff --git a/README.md b/README.md index 2dae439..ed5a04e 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,13 @@ the latest prebuilt release of these fonts. `make install` will install the TTF fonts into your local `.fonts/` directory and update the font cache. It comes in handy while modifying the font. +Alternatively, if you'd like to build Fantasque without installing required dependencies, a Dockerfile is provided. Run the following command, and the fonts will be built to the ./Variants directory. + +```sh +docker build -t fantasque . +docker run -v `pwd`/Variants:/fantasque/Variants +``` + [![](Specimen/Specimen.png)](Specimen/Specimen.pdf) Webfonts From d1c591af5a73c9dfc8eba3d2cc459bb3b9f3001d Mon Sep 17 00:00:00 2001 From: Jany Belluz Date: Sat, 4 Jul 2020 11:43:46 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed5a04e..5ced3e5 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Alternatively, if you'd like to build Fantasque without installing required depe ```sh docker build -t fantasque . -docker run -v `pwd`/Variants:/fantasque/Variants +docker run -v `pwd`/Variants:/fantasque/Variants fantasque ``` [![](Specimen/Specimen.png)](Specimen/Specimen.pdf)