mirror of
https://github.com/rsms/inter.git
synced 2024-09-11 10:55:24 +03:00
tooling: nit: do not crash if certain lib props do not exist in gen-var-designspace.py
This commit is contained in:
parent
5f12e203cb
commit
e5a7c7c8c1
@ -25,8 +25,10 @@ def fixup_instance(designspace, instance):
|
||||
instance.styleMapFamilyName = instance.styleMapFamilyName.replace(' Display', '')
|
||||
|
||||
# remove WWSFamilyName and WWSSubfamilyName properties
|
||||
if 'com.schriftgestaltung.properties' in instance.lib:
|
||||
del instance.lib['com.schriftgestaltung.properties']
|
||||
|
||||
if 'com.schriftgestaltung.customParameters' in instance.lib:
|
||||
customParameters = instance.lib['com.schriftgestaltung.customParameters']
|
||||
i = len(customParameters)
|
||||
while i > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user