Skip to content

Commit

Permalink
Build WOFF2 font directly in the docs dir
Browse files Browse the repository at this point in the history
No need to keep two copies of them.
  • Loading branch information
khaledhosny committed May 13, 2024
1 parent 83bb2c5 commit 0d9b7cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ SCRIPTDIR = scripts
FONTDIR = fonts
TESTDIR = tests
BUILDDIR = build
WOFFDIR = docs/assets/fonts

NAMES = $(NAME) $(NAME)Sura
FONTS = $(NAMES:%=$(FONTDIR)/%.ttf)
WOFF2 = $(FONTS:%.ttf=%.woff2)
WOFF2 = $(NAMES:%=$(WOFFDIR)/%.woff2)

TESTS = shaping decomposition
JSON = $(TESTS:%=$(TESTDIR)/%.json)
Expand All @@ -51,7 +52,6 @@ test: $(HTML)
update-test: $(JSON)

web: $(WOFF2)
cp $+ docs/assets/fonts/

update-fea: $(FONTS)
fonts=($(FONTS))
Expand All @@ -65,7 +65,7 @@ $(FONTDIR)/%.ttf: $(SOURCEDIR)/%.glyphspackage $(CONFIG) $(GLYPHDATA) $(SOURCEDI
$(info   BUILD $(@F))
python $(SCRIPTDIR)/build.py $< $(VERSION) $@ --data=$(GLYPHDATA) $(ARGS)

$(FONTDIR)/%.woff2: $(FONTDIR)/%.ttf
$(WOFFDIR)/%.woff2: $(FONTDIR)/%.ttf
$(info   WOFF2 $(@F))
python $(SCRIPTDIR)/buildwoff2.py $< $@

Expand Down
Binary file removed fonts/Raqq.woff2
Binary file not shown.
Binary file removed fonts/RaqqSura.woff2
Binary file not shown.

0 comments on commit 0d9b7cb

Please sign in to comment.