summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@figma.com>2019-03-17 16:52:25 +0300
committerRasmus Andersson <rasmus@figma.com>2019-03-17 16:52:25 +0300
commit20aaab681df22c8251fbc1bb68fbd38a1b858b32 (patch)
tree2ca95f362b028cd544743f29ce09dc953698d637
parent36084ac6fde6ae751677a5166cb9b462542b8dce (diff)
downloadinter-20aaab681df22c8251fbc1bb68fbd38a1b858b32.tar.xz
Change version encoding in font files to match common zero-padded version to allow FontBakery to be happy. Closes #138
-rwxr-xr-xmisc/fontbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/fontbuild b/misc/fontbuild
index 85fd7168f..bf88e95b0 100755
--- a/misc/fontbuild
+++ b/misc/fontbuild
@@ -228,7 +228,8 @@ def updateFontVersion(font, dummy=False):
font.info.woffMajorVersion = versionMajor
font.info.woffMinorVersion = versionMinor
font.info.year = now.year
- font.info.openTypeNameVersion = "%s;%s" % (version, buildtag)
+ font.info.openTypeNameVersion = "%d.%03d;git-%s" % (
+ versionMajor, versionMinor, buildtag)
font.info.openTypeNameUniqueID = "%s %s:%d:%s" % (
font.info.familyName, font.info.styleName, now.year, buildtag)
# creation date & time (YYYY/MM/DD HH:MM:SS)