make sure fvar ps name for InterVariableItalic is not identical to ID 25. Re #577
This commit is contained in:
parent
7429e38d2e
commit
582467fa8d
1 changed files with 4 additions and 1 deletions
|
|
@ -27,7 +27,10 @@ def fixup_instance(designspace, instance):
|
||||||
isItalic = "Italic" in instance.styleName
|
isItalic = "Italic" in instance.styleName
|
||||||
psStyle = remove_whitespace(instance.styleName)
|
psStyle = remove_whitespace(instance.styleName)
|
||||||
if isItalic:
|
if isItalic:
|
||||||
instance.postScriptFontName = 'InterVariableItalic-' + psStyle.replace('Italic','')
|
psStyle = psStyle.replace('Italic','')
|
||||||
|
if psStyle == '':
|
||||||
|
psStyle = 'Regular'
|
||||||
|
instance.postScriptFontName = 'InterVariableItalic-' + psStyle
|
||||||
else:
|
else:
|
||||||
instance.postScriptFontName = 'InterVariable-' + psStyle
|
instance.postScriptFontName = 'InterVariable-' + psStyle
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue