diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-04-01 05:38:23 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-04-01 05:38:23 +0300 |
commit | b5153bc828606c9aaae21fb685f653cbcfb48dd3 (patch) | |
tree | 0055e38a091e15775bb773250ba4513a19c0e4a0 /misc/tools/fontinfo.py | |
parent | 4a575d2edc18a4f03958008c9e0ff74432480769 (diff) | |
download | inter-b5153bc828606c9aaae21fb685f653cbcfb48dd3.tar.xz |
fix issue with misc/tools/fontinfo.py caused by the wonky FontBakery-enforced version format
Diffstat (limited to 'misc/tools/fontinfo.py')
-rwxr-xr-x | misc/tools/fontinfo.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |