mirror of
https://github.com/rsms/inter.git
synced 2024-09-11 10:55:24 +03:00
tooling: pass --no-autohint to fontmake to ensure no time is wasted on autohinting
This commit is contained in:
parent
b50c358358
commit
5f12e203cb
6
Makefile
6
Makefile
@ -152,7 +152,8 @@ build/ufo-editable/.ok: build/ufo-editable/Inter-Roman.designspace build/ufo-edi
|
|||||||
# arguments to fontmake
|
# arguments to fontmake
|
||||||
FM_ARGS_2 := $(FM_ARGS) \
|
FM_ARGS_2 := $(FM_ARGS) \
|
||||||
--overlaps-backend pathops \
|
--overlaps-backend pathops \
|
||||||
--flatten-components
|
--flatten-components \
|
||||||
|
--no-autohint
|
||||||
ifndef DEBUG
|
ifndef DEBUG
|
||||||
FM_ARGS_2 += --production-names
|
FM_ARGS_2 += --production-names
|
||||||
else
|
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
|
$(FONTDIR)/static-hinted/%.ttf: $(FONTDIR)/static/%.ttf | $(FONTDIR)/static-hinted venv
|
||||||
. $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
|
. $(VENV) ; python -m ttfautohint --no-info "$<" "$@"
|
||||||
|
|
||||||
|
|
||||||
$(FONTDIR)/var/_%.var.ttf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
$(FONTDIR)/var/_%.var.ttf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
||||||
. $(VENV) ; fontmake -o variable -m $< --output-path $@ $(FM_ARGS_2)
|
. $(VENV) ; fontmake -o variable -m $< --output-path $@ $(FM_ARGS_2)
|
||||||
|
|
||||||
$(FONTDIR)/var/_%.var.otf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
$(FONTDIR)/var/_%.var.otf: $(UFODIR)/%.var.designspace build/features_data | $(FONTDIR)/var venv
|
||||||
. $(VENV) ; fontmake -o variable-cff2 -m $< --output-path $@ $(FM_ARGS_2)
|
. $(VENV) ; fontmake -o variable-cff2 -m $< --output-path $@ $(FM_ARGS_2)
|
||||||
|
|
||||||
|
|
||||||
%.woff2: %.ttf | venv
|
%.woff2: %.ttf | venv
|
||||||
. $(VENV) ; misc/tools/woff2 compress -o "$@" "$<"
|
. $(VENV) ; misc/tools/woff2 compress -o "$@" "$<"
|
||||||
|
|
||||||
|
|
||||||
$(FONTDIR)/static:
|
$(FONTDIR)/static:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
$(FONTDIR)/static-hinted:
|
$(FONTDIR)/static-hinted:
|
||||||
|
Loading…
Reference in New Issue
Block a user