diff --git a/Makefile b/Makefile index a0e7d90ad..ae645f4b2 100644 --- a/Makefile +++ b/Makefile @@ -91,14 +91,14 @@ build/%.woff: build/%.ttf # Master UFOs -> variable TTF $(FONTDIR)/var/%.var.ttf: src/%.designspace $(all_ufo_masters) - misc/fontbuild compile-var -o $@ $< + misc/fontbuild compile-var -o $@ $(FONTBUILD_FLAGS) $< # Instance UFO -> OTF, TTF (note: masters' rules in generated.make) $(FONTDIR)/const/Inter-%.otf: build/ufo/Inter-%.ufo - misc/fontbuild compile -o $@ $< + misc/fontbuild compile -o $@ $(FONTBUILD_FLAGS) $< $(FONTDIR)/const/Inter-%.ttf: build/ufo/Inter-%.ufo - misc/fontbuild compile -o $@ $< + misc/fontbuild compile -o $@ $(FONTBUILD_FLAGS) $< # designspace <- glyphs file diff --git a/init.sh b/init.sh index 0323054c4..a82274343 100755 --- a/init.sh +++ b/init.sh @@ -413,9 +413,9 @@ else # master OTF and TTF rules for style in "${master_styles[@]}"; do echo "${DIST_DIR_TOK}const/Inter-${style}.otf: \$(${style}_ufo_d)" >> "$GEN_MAKE_FILE" - echo -e "\tmisc/fontbuild compile -o \$@ src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE" + echo -e "\tmisc/fontbuild compile -o \$@ \$(FONTBUILD_FLAGS) src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE" echo "${DIST_DIR_TOK}const/Inter-${style}.ttf: \$(${style}_ufo_d)" >> "$GEN_MAKE_FILE" - echo -e "\tmisc/fontbuild compile -o \$@ src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE" + echo -e "\tmisc/fontbuild compile -o \$@ \$(FONTBUILD_FLAGS) src/Inter-${style}.ufo" >> "$GEN_MAKE_FILE" echo "" >> "$GEN_MAKE_FILE" done