1
1
mirror of https://github.com/rsms/inter.git synced 2024-08-15 22:00:25 +03:00

fixes bad TT hints by using separate reference fonts for text/display with ttfautohint. Closes #606

This commit is contained in:
Rasmus Andersson 2023-08-29 11:25:11 -07:00
parent fe75d3a2cc
commit 78567da6c1

View File

@ -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 \