summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@figma.com>2019-03-12 21:21:32 +0300
committerRasmus Andersson <rasmus@figma.com>2019-03-12 21:21:32 +0300
commit36084ac6fde6ae751677a5166cb9b462542b8dce (patch)
tree0009823f0768a4c7fe75b861117097adc54e7e9a
parent9d48272f98316c285de8bbd314eee235712a0944 (diff)
downloadinter-36084ac6fde6ae751677a5166cb9b462542b8dce.tar.xz
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
-rwxr-xr-xmisc/fontbuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/fontbuild b/misc/fontbuild
index 02b5a0601..85fd7168f 100755
--- a/misc/fontbuild
+++ b/misc/fontbuild
@@ -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)