fixes OS/2 table usWeightClass entry in static fonts by rounding to nearest 100th. Closes #583
This commit is contained in:
parent
b7ed03d0e2
commit
2c652cfc9a
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ def main(argv):
|
|||
# "postscriptFontName" maps to name ID 6 "postscriptName"
|
||||
ufo.info.postscriptFontName = rmspace(familyName) + '-' + rmspace(styleName)
|
||||
|
||||
# round OS/2 weight class values to even 100ths
|
||||
ufo.info.openTypeOS2WeightClass = round(ufo.info.openTypeOS2WeightClass / 100) * 100
|
||||
|
||||
ufo.save(ufo_file)
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue