Skip to content

Commit

Permalink
Only pass check_compatibility option for run_from_glyphs or run_from_…
Browse files Browse the repository at this point in the history
…designspace.
  • Loading branch information
bramstein committed Mar 22, 2023
1 parent a5b3fd2 commit 90eca6a
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 90eca6a

Please sign in to comment.