From 20aaab681df22c8251fbc1bb68fbd38a1b858b32 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sun, 17 Mar 2019 06:52:25 -0700 Subject: [PATCH] Change version encoding in font files to match common zero-padded version to allow FontBakery to be happy. Closes #138 --- misc/fontbuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/fontbuild b/misc/fontbuild index 85fd7168f9..bf88e95b08 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)