1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-29 06:22:48 +03:00

make sure fvar ps name for InterVariableItalic is not identical to ID 25. Re #577

This commit is contained in:
Rasmus Andersson 2023-06-12 12:22:16 -07:00
parent 7429e38d2e
commit 582467fa8d

View File

@ -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