mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
fix issue with misc/tools/fontinfo.py caused by the wonky FontBakery-enforced version format
This commit is contained in:
parent
4a575d2edc
commit
b5153bc828
2 changed files with 4 additions and 1 deletions
|
@ -118,6 +118,6 @@
|
|||
"underlinePosition": -464,
|
||||
"underlineThickness": 192
|
||||
},
|
||||
"version": "Version"
|
||||
"version": "3.4"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue