fonttools / fontbakery

🧁 A font quality assurance tool for everyone
https://fontbakery.readthedocs.io
Apache License 2.0
548 stars 99 forks source link

Skip cap x height alignment when OS/2 version is < 2 #4655

Closed drj11 closed 5 months ago

drj11 commented 5 months ago

Description

Relates to issue #4623

In the esoteric case when a font has an OS/2 table with version < 2, the x- and Cap-height alignment checks error when accessing the sxHeight and sCapHeight fields.

I have modified the check so that in this case the x-height and Cap-Height checks are avoided, and additionally a warning is issued.

Checklist