diff options
author | Rasmus Andersson <rasmus@notion.se> | 2023-08-29 21:25:11 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2023-08-29 21:25:11 +0300 |
commit | 78567da6c1fcd57ecc344a8c0eb713ec79f95da3 (patch) | |
tree | 4bacd5318aae9ecd295329424fc2eed989496532 /Makefile | |
parent | fe75d3a2cc2fc98a54116d1fd6e108af2a0f72c9 (diff) | |
download | inter-78567da6c1fcd57ecc344a8c0eb713ec79f95da3.tar.xz |
fixes bad TT hints by using separate reference fonts for text/display with ttfautohint. Closes #606
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 \ |