Skip to content

Commit

Permalink
Change version encoding in font files to match common zero-padded ver…
Browse files Browse the repository at this point in the history
…sion to allow FontBakery to be happy. Closes #138
  • Loading branch information
rsms committed Mar 17, 2019
1 parent 36084ac commit 20aaab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/fontbuild
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20aaab6

Please sign in to comment.