Skip to content

Commit

Permalink
tooling: pass --no-autohint to fontmake to ensure no time is wasted o…
Browse files Browse the repository at this point in the history
…n autohinting
  • Loading branch information
rsms committed May 31, 2023
1 parent b50c358 commit 5f12e20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 5f12e20

Please sign in to comment.