diff options
author | Rasmus Andersson <rasmus@notion.se> | 2023-06-12 22:22:16 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2023-06-12 22:22:16 +0300 |
commit | 582467fa8d5ae8ab59dd4430617b0b0761542add (patch) | |
tree | 028e9ed9374ac702b9fd540755196a8c011a44b4 | |
parent | 7429e38d2ebb2bf965522445cc74e9b447ec8cb1 (diff) | |
download | inter-582467fa8d5ae8ab59dd4430617b0b0761542add.tar.xz |
make sure fvar ps name for InterVariableItalic is not identical to ID 25. Re #577
-rw-r--r-- | misc/tools/gen-var-designspace.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/tools/gen-var-designspace.py b/misc/tools/gen-var-designspace.py index 5fc9cc322..5af64ab10 100644 --- a/misc/tools/gen-var-designspace.py +++ b/misc/tools/gen-var-designspace.py @@ -27,7 +27,10 @@ def fixup_instance(designspace, instance): isItalic = "Italic" in instance.styleName psStyle = remove_whitespace(instance.styleName) if isItalic: - instance.postScriptFontName = 'InterVariableItalic-' + psStyle.replace('Italic','') + psStyle = psStyle.replace('Italic','') + if psStyle == '': + psStyle = 'Regular' + instance.postScriptFontName = 'InterVariableItalic-' + psStyle else: instance.postScriptFontName = 'InterVariable-' + psStyle |