Skip to content

Commit

Permalink
Merge pull request #669 from the-type-founders/bs-check-compatibility…
Browse files Browse the repository at this point in the history
…-variable-only

Only pass check_compatibility option for run_from_glyphs or run_from_designspace
  • Loading branch information
m4rc1e authored Mar 22, 2023
2 parents a5b3fd2 + 90eca6a commit ed2979d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/gftools/builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,12 @@ def run_fontmake(self, source, args):
if "removeOutlineOverlaps" in self.config:
args["remove_overlaps"] = self.config["removeOutlineOverlaps"]

args["check_compatibility"] = self.config["checkCompatibility"]

if source.endswith(".glyphs") or source.endswith(".glyphspackage"):
args["check_compatibility"] = self.config["checkCompatibility"]
FontProject().run_from_glyphs(source, **args)
elif source.endswith(".designspace"):
args["check_compatibility"] = self.config["checkCompatibility"]
FontProject().run_from_designspace(source, **args)
elif source.endswith(".ufo"):
FontProject().run_from_ufos([source], **args)
Expand Down

0 comments on commit ed2979d

Please sign in to comment.