mirror of
https://github.com/rsms/inter.git
synced 2025-01-08 17:28:45 +03:00
use ttfautohint with python -m instead of by path to script. Closes #470
This commit is contained in:
parent
0e7d2c5a83
commit
590b773add
5
Makefile
5
Makefile
@ -113,8 +113,7 @@ $(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo | $(FONTDIR)/static venv
|
|||||||
--overlaps-backend pathops --production-names
|
--overlaps-backend pathops --production-names
|
||||||
|
|
||||||
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
|
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
|
||||||
. $(VENV) ; python $(PWD)/build/venv/lib/python/site-packages/ttfautohint \
|
. $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
|
||||||
--no-info "$<" "$@"
|
|
||||||
|
|
||||||
$(FONTDIR)/var/Inter-V.var.ttf: $(FONTDIR)/var/Inter.var.ttf venv
|
$(FONTDIR)/var/Inter-V.var.ttf: $(FONTDIR)/var/Inter.var.ttf venv
|
||||||
. $(VENV) ; python misc/tools/rename.py --family "Inter V" -o $@ $<
|
. $(VENV) ; python misc/tools/rename.py --family "Inter V" -o $@ $<
|
||||||
@ -456,8 +455,6 @@ build/venv/config.stamp: requirements.txt
|
|||||||
@mkdir -p build
|
@mkdir -p build
|
||||||
test -d build/venv || python3 -m venv build/venv
|
test -d build/venv || python3 -m venv build/venv
|
||||||
. $(VENV) ; pip install -Ur requirements.txt
|
. $(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 $@
|
touch $@
|
||||||
|
|
||||||
reset: clean
|
reset: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user