fix postscript names in VF per fbake:com.adobe.fonts/check/varfont/valid_default_instance_nameids
This commit is contained in:
parent
d7208199a4
commit
e28d41ab3c
1 changed files with 7 additions and 3 deletions
|
|
@ -29,10 +29,14 @@ def fixup_instance(designspace, instance):
|
||||||
if isItalic:
|
if isItalic:
|
||||||
psStyle = psStyle.replace('Italic','')
|
psStyle = psStyle.replace('Italic','')
|
||||||
if psStyle == '':
|
if psStyle == '':
|
||||||
psStyle = 'Regular'
|
instance.postScriptFontName = 'InterVariableItalic'
|
||||||
instance.postScriptFontName = 'InterVariableItalic-' + psStyle
|
else:
|
||||||
|
instance.postScriptFontName = 'InterVariableItalic-' + psStyle
|
||||||
else:
|
else:
|
||||||
instance.postScriptFontName = 'InterVariable-' + psStyle
|
if psStyle == 'Regular':
|
||||||
|
instance.postScriptFontName = 'InterVariable'
|
||||||
|
else:
|
||||||
|
instance.postScriptFontName = 'InterVariable-' + psStyle
|
||||||
|
|
||||||
instance.styleMapFamilyName = instance.styleMapFamilyName.replace(' Display', '')
|
instance.styleMapFamilyName = instance.styleMapFamilyName.replace(' Display', '')
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue