1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-26 17:12:35 +03:00

Changes the name of the variable font to "Inter Variable" in order to allow the variable version to be installed in parallel with the constant font files

This commit is contained in:
Rasmus Andersson 2019-03-12 11:21:32 -07:00
parent 9d48272f98
commit 36084ac6fd

View File

@ -162,6 +162,13 @@ class VarFontProject(FontProject):
masters = [s.font for s in designspace.sources]
for ufo in masters:
ufo.info.familyName = "Inter Variable"
ufo.info.styleMapFamilyName = "Inter Variable"
ufo.info.postscriptFontName = "InterVariable"
ufo.info.macintoshFONDName =\
ufo.info.macintoshFONDName.replace('Inter', 'Inter Variable')
ufo.info.openTypeNamePreferredFamilyName =\
ufo.info.openTypeNamePreferredFamilyName.replace('Inter', 'Inter Variable')
updateFontVersion(ufo)
isItalic = ufo.info.italicAngle != 0
ufoname = basename(ufo.path)