HinTak / Font-Validator

Font Validator is a tool for testing fonts prior to release. This testing ensures that fonts meet Microsoft's high quality standards and perform exceptionally well on Microsoft's platform.
Other
146 stars 12 forks source link

xAvgCharWidth is calculated differently by fontTools and FontVal #33

Closed madig closed 6 years ago

madig commented 6 years ago

See https://github.com/googlei18n/ufo2ft/issues/195. Not sure what to make of it.

HinTak commented 6 years ago

https://github.com/HinTak/Font-Validator/blob/master/OTFontFileVal/val_OS2.cs - line 105, does one way of calculation when OS/2 table is "exactly 3", and does something else if not. It should be changed to "larger than or equal to 3".

HinTak commented 6 years ago

Thanks for the report. I'll make the change and close this now. Please pull and rebuild.