diff options
author | Rasmus <rasmus@notion.se> | 2022-05-26 21:20:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 21:20:06 +0300 |
commit | 07960766590650e516a75ce6ceba91b68a5fa551 (patch) | |
tree | f0c82cd40cb68950bf8229d14cbc850fec41e5ba /docs/Makefile | |
parent | 633839ad550073f9d12e6cea7964a30523974b68 (diff) | |
download | inter-07960766590650e516a75ce6ceba91b68a5fa551.tar.xz |
UPM 2048 and opsz axis (#462)
- UPM is adjusted to 2048
- Additional opsz VF axis (multi master) added which will eventually replace the separate Display family
- New tooling that uses fontmake instead of Inter's own fontbuild toolchain. (The old toolchain is still supported, i.e. `make -f Makefile_v1.make ...`)
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 000000000..e332f0006 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,51 @@ +SRCDIR := $(abspath $(lastword $(MAKEFILE_LIST))/../..) +BIN := $(SRCDIR)/build/venv/bin +FONTDIR := ../build/fonts +export PATH := $(BIN):$(PATH) + +default: + @echo "Please specify a target: build, serve or dist" >&2 + +build: + rm -rf _site + bundle exec jekyll build + +serve: + ./_scripts/serve.sh + +# ----------------------------------------------------------------------- + +dist: fonts info + $(BIN)/python3 ../misc/tools/patch-version.py lab/index.html + +info: _data/fontinfo.json \ + lab/glyphinfo.json \ + glyphs/metrics.json + +fonts: + rm -rf font-files/Inter-* font-files/Inter.var* + mkdir -p font-files + cp -a $(FONTDIR)/static/Inter-*.woff2 \ + $(FONTDIR)/static/Inter-*.otf \ + $(FONTDIR)/var/Inter.var.* \ + $(FONTDIR)/var/Inter-roman.var.* \ + $(FONTDIR)/var/Inter-italic.var.* \ + font-files/ + +_data/fontinfo.json: ../misc/tools/fontinfo.py font-files/Inter-Regular.otf + $(BIN)/python3 ../misc/tools/fontinfo.py -pretty $< > _data/fontinfo.json + +lab/glyphinfo.json: ../misc/tools/gen-glyphinfo.py \ + ../build/ufo/Inter-Regular.ufo \ + ../misc/UnicodeData.txt + $(BIN)/python3 ../misc/tools/gen-glyphinfo.py \ + -ucd ../misc/UnicodeData.txt ../build/ufo/Inter-Regular.ufo > $@ + +glyphs/metrics.json: ../misc/tools/gen-metrics-and-svgs.py \ + ../build/ufo/Inter-Regular.ufo + $(BIN)/python3 ../misc/tools/gen-metrics-and-svgs.py ../build/ufo/Inter-Regular.ufo + @# Note: this also patches glyphs/index.html + +font-files/Inter-Regular.otf: fonts + +.PHONY: default build serve dist info fonts |