summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2024-03-24 22:56:31 +0300
committerRasmus Andersson <rasmus@notion.se>2024-03-24 22:56:31 +0300
commit1aa551863baebce66706e3ac05ee5a2bae375159 (patch)
treee8a5e285ff86578b90ab9d0db2ed0f66b34196c5
parent73509f5273fc8971363d4af60b0bb415beafe735 (diff)
downloadinter-1aa551863baebce66706e3ac05ee5a2bae375159.tar.xz
include hinted woff font files in distribution. Closes #654
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 02590b70e..ff93d5f74 100644
--- a/Makefile
+++ b/Makefile
@@ -237,7 +237,7 @@ var_web: \
$(FONTDIR)/var/InterVariable.woff2 \
$(FONTDIR)/var/InterVariable-Italic.woff2
-web: var_web static_web
+web: var_web static_web static_web_hinted
static: \
$(FONTDIR)/static-hinted/Inter.ttc
@@ -284,8 +284,9 @@ STATIC_DISPLAY_FONTS := \
STATIC_FONTS := $(STATIC_TEXT_FONTS) $(STATIC_DISPLAY_FONTS)
STATIC_FONTS_OTF := $(patsubst %,$(FONTDIR)/static/%.otf,$(STATIC_FONTS))
-STATIC_FONTS_WEB := $(patsubst %,$(FONTDIR)/static/%.woff2,$(STATIC_FONTS))
STATIC_FONTS_TTF := $(patsubst %,$(FONTDIR)/static-hinted/%.ttf,$(STATIC_FONTS))
+STATIC_FONTS_WEB := $(patsubst %,$(FONTDIR)/static/%.woff2,$(STATIC_FONTS))
+STATIC_FONTS_WEB_HINTED := $(patsubst %,$(FONTDIR)/static-hinted/%.woff2,$(STATIC_FONTS))
$(FONTDIR)/static/Inter.otc: $(STATIC_FONTS_OTF)
. $(VENV) ; python -m fontTools.ttLib.__main__ -o $@ $^
@@ -296,12 +297,13 @@ $(FONTDIR)/static-hinted/Inter.ttc: $(STATIC_FONTS_TTF)
static_otf: $(STATIC_FONTS_OTF)
static_ttf: $(STATIC_FONTS_TTF)
static_web: $(STATIC_FONTS_WEB)
+static_web_hinted: $(STATIC_FONTS_WEB_HINTED)
all: var static web static_otf
.PHONY: \
all var var_web web \
- static static_otf static_ttf static_web
+ static static_otf static_ttf static_web static_web_hinted
# ---------------------------------------------------------------------------------
# testing