mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
fixes bad TT hints by using separate reference fonts for text/display with ttfautohint. Closes #606
This commit is contained in:
parent
fe75d3a2cc
commit
78567da6c1
1 changed files with 8 additions and 1 deletions
9
Makefile
9
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 \
|
||||
|
|
Loading…
Reference in a new issue