1
1
mirror of https://github.com/rsms/inter.git synced 2024-09-11 10:55:24 +03:00

make sure "Italic" is excluded from familyName in UFO fontinfo, re #519

This commit is contained in:
Rasmus Andersson 2023-06-11 16:01:13 -07:00
parent 0e23d14f6c
commit 350dd70403

View File

@ -33,7 +33,7 @@ def main(argv):
ufo.info.openTypeNamePreferredFamilyName = familyName
ufo.info.openTypeNamePreferredSubfamilyName = styleName
ufo.info.familyName = familyName + ' ' + styleName
ufo.info.familyName = (familyName + ' ' + styleName).replace(' Italic', '').strip()
ufo.info.styleName = 'Regular' if styleName.find('Italic') == -1 else 'Italic'
# must also set these explicitly to avoid PostScript names like "Inter-ThinRegular":