1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-25 18:39:41 +03:00

use ttfautohint with python -m instead of by path to script. Closes #470

This commit is contained in:
Rasmus Andersson 2022-09-18 15:03:05 -07:00
parent 6bd4dd6b77
commit de106bc83a

View File

@ -113,8 +113,7 @@ $(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo | $(FONTDIR)/static venv
--overlaps-backend pathops --production-names
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
. $(VENV) ; python $(PWD)/build/venv/lib/python/site-packages/ttfautohint \
--no-info "$<" "$@"
. $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
$(FONTDIR)/var/Inter-V.var.ttf: $(FONTDIR)/var/Inter.var.ttf venv
. $(VENV) ; python misc/tools/rename.py --family "Inter V" -o $@ $<
@ -456,8 +455,6 @@ build/venv/config.stamp: requirements.txt
@mkdir -p build
test -d build/venv || python3 -m venv build/venv
. $(VENV) ; pip install -Ur requirements.txt
rm -f build/venv/lib/python
ln -sf $$(basename $$(readlink build/venv/bin/python)) build/venv/lib/python
touch $@
reset: clean