From 78567da6c1fcd57ecc344a8c0eb713ec79f95da3 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Tue, 29 Aug 2023 11:25:11 -0700 Subject: [PATCH] fixes bad TT hints by using separate reference fonts for text/display with ttfautohint. Closes #606 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2b548b037..4db40ec62 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,14 @@ $(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo build/features_data | $(FONTDIR)/static . $(VENV) ; fontmake -u $< -o ttf --output-path $@ $(FM_ARGS_2) -$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static/Inter-Regular.ttf $(FONTDIR)/static-hinted venv +$(FONTDIR)/static-hinted/InterDisplay-%.ttf: $(FONTDIR)/static/InterDisplay-%.ttf | $(FONTDIR)/static/InterDisplay-Regular.ttf $(FONTDIR)/static-hinted venv + . $(VENV) ; python -m ttfautohint \ + --stem-width-mode=qqq \ + --reference $(FONTDIR)/static/InterDisplay-Regular.ttf \ + --no-info \ + "$<" "$@" + +$(FONTDIR)/static-hinted/Inter-%.ttf: $(FONTDIR)/static/Inter-%.ttf | $(FONTDIR)/static/Inter-Regular.ttf $(FONTDIR)/static-hinted venv . $(VENV) ; python -m ttfautohint \ --stem-width-mode=qqq \ --reference $(FONTDIR)/static/Inter-Regular.ttf \