We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2973dc commit f71bc97Copy full SHA for f71bc97
source/lib/batch.py
@@ -237,13 +237,16 @@ def generateCallback(self, sender):
237
# no fonts found in the source table
238
return
239
240
+ shouldGenerateUFOsFromDesignspaces = any([value for key, value in generateOptions.items() if "desktopFontGenerate" in key or "webFontGenerate" in key])
241
+
242
def result(path):
243
if path:
244
root = path[0]
245
246
progress = self.startProgress("Generating...", parent=self.w)
247
for designspaceDocument in designspaceDocuments:
- designspaceDocument.generateUFOs()
248
+ if shouldGenerateUFOsFromDesignspaces:
249
+ designspaceDocument.generateUFOs()
250
try:
251
self.report = Report()
252
self.report.writeTitle("Batch Generate:")
0 commit comments