From b5153bc828606c9aaae21fb685f653cbcfb48dd3 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sun, 31 Mar 2019 19:38:23 -0700 Subject: fix issue with misc/tools/fontinfo.py caused by the wonky FontBakery-enforced version format --- misc/tools/fontinfo.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'misc/tools') diff --git a/misc/tools/fontinfo.py b/misc/tools/fontinfo.py index 76088ad3f..eef3d7a58 100755 --- a/misc/tools/fontinfo.py +++ b/misc/tools/fontinfo.py @@ -298,6 +298,9 @@ def genFontInfo(fontpath, outputType, withGlyphs=True): v = re.split(r'[\s;]+', version) if v and len(v) > 0: version = v[0] + if version.lower() == 'version': + version = v[1] + version = '.'.join([str(int(v)) for v in version.split('.')]) info['version'] = version if outputType is not OUTPUT_TYPE_GLYPHLIST: -- cgit v1.2.3