Change version encoding in font files to match common zero-padded version to allow FontBakery to be happy. Closes #138
This commit is contained in:
parent
36084ac6fd
commit
20aaab681d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue