Skip to content

Commit

Permalink
[fontc] Set --drop-implied-oncurves
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Oct 31, 2024
1 parent 4d011a3 commit 31d7c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/gftools/builder/fontc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def modify_config(self, config: dict):
config["splitItalic"] = False
# set --no-production-names, because it's easier to debug
extra_args = config.get("extraFontmakeArgs") or ""
extra_args += " --no-production-names"
extra_args += " --no-production-names --drop-implied-oncurves"
config["extraFontmakeArgs"] = extra_args
# override config to turn not build instances if we're variable
if self.will_build_variable_font(config):
Expand Down
3 changes: 3 additions & 0 deletions Lib/gftools/builder/operations/fontc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def rewrite_one_arg(args: List[str]) -> str:
next_ = f"{next_} {filter_}"
elif next_ == "--no-production-names":
return next_
elif next_ == "--drop-implied-oncurves":
# this is our default behaviour so no worries
return ""
else:
raise ValueError(f"unknown fontmake arg '{next_}'")
return ""

0 comments on commit 31d7c78

Please sign in to comment.