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

tooling: pass --no-autohint to fontmake to ensure no time is wasted on autohinting

This commit is contained in:
Rasmus Andersson 2023-05-31 11:36:33 -07:00
parent b50c358358
commit 5f12e203cb

View File

@ -152,7 +152,8 @@ build/ufo-editable/.ok: build/ufo-editable/Inter-Roman.designspace build/ufo-edi
# arguments to fontmake
FM_ARGS_2 := $(FM_ARGS) \
--overlaps-backend pathops \
--flatten-components
--flatten-components \
--no-autohint
ifndef DEBUG
FM_ARGS_2 += --production-names
else
@ -178,15 +179,18 @@ $(FONTDIR)/static/%.ttf: $(UFODIR)/%.ufo build/features_data | $(FONTDIR)/static
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
. $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
$(FONTDIR)/var/_%.var.ttf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
. $(VENV) ; fontmake -o variable -m $< --output-path $@ $(FM_ARGS_2)
$(FONTDIR)/var/_%.var.otf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
. $(VENV) ; fontmake -o variable-cff2 -m $< --output-path $@ $(FM_ARGS_2)
%.woff2: %.ttf | venv
. $(VENV) ; misc/tools/woff2 compress -o "$@" "$<"
$(FONTDIR)/static:
mkdir -p $@
$(FONTDIR)/static-hinted: