Skip to content

Commit fb37a57

Browse files
committed
rename labels
1 parent d2a7237 commit fb37a57

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Batch.roboFontExt/lib/batch.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ class BatchController(ezui.WindowController):
6666
]
6767
webFontsFormats = [
6868
"OTF",
69-
"OTF Woff 2",
69+
"OTF WOFF2",
7070
"TTF",
71-
"TTF Woff 2",
71+
"TTF WOFF2",
7272
# "SVG",
7373
]
7474
variableFontsFormats = [
7575
"OTF",
76-
"OTF Woff 2",
76+
"OTF WOFF2",
7777
"TTF",
78-
"TTF Woff 2",
78+
"TTF WOFF2",
7979
]
8080

8181
supportedFileTypes = ["ufo", "designspace", "otf", "ttf", "woff", "ttx"]
@@ -142,10 +142,14 @@ def build(self, sources=[]):
142142

143143
def started(self):
144144
items = getExtensionDefault("com.typemytype.batch", dict())
145-
for identifier in ("sources", "help", "webFontGenerate_SVG"):
145+
for identifier in ("sources", "help"):
146146
if identifier in items:
147147
del items[identifier]
148148

149+
possibleIdentifiers = self.w.getItemValues().keys()
150+
for identifier in list(items.keys()):
151+
if identifier not in possibleIdentifiers:
152+
del items[identifier]
149153
self.w.setItemValues(items)
150154
self.w.open()
151155

0 commit comments

Comments
 (0)