Skip to content

Commit

Permalink
Pass bool of expandFeaturesToInstances from config to instantiateUfo …
Browse files Browse the repository at this point in the history
…step; make True by default
  • Loading branch information
arrowtype committed Oct 3, 2024
1 parent 6c6a9e4 commit a429d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/gftools/builder/operations/instantiateUfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def targets(self):
def variables(self):
vars = super().variables
vars["args"] += " --ufo-structure=json "
vars["args"] += " --expand-features-to-instances "
if self.original["expandFeaturesToInstances"]:
vars["args"] += " --expand-features-to-instances "
if self.first_source.is_glyphs:
vars["args"] += f"--instance-dir {escape_path(str(self.instance_dir))}"
else:
Expand Down
2 changes: 2 additions & 0 deletions Lib/gftools/builder/recipeproviders/googlefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"checkCompatibility": True,
"overlaps": "booleanOperations",
"splitItalic": True,
"expandFeaturesToInstances": True
}


Expand Down Expand Up @@ -338,6 +339,7 @@ def build_a_static(self, source: File, instance: InstanceDescriptor, output):
"operation": "instantiateUfo",
"instance_name": instancename,
"glyphData": self.config.get("glyphData"),
"expandFeaturesToInstances": self.config.get("expandFeaturesToInstances"),
}
)
steps += (
Expand Down

0 comments on commit a429d71

Please sign in to comment.