face->os2.fsSelection & 128 should be face->os2.fsSelection & 64. Even the comment says it should test bit 7, but it's testing bit 8. This sets wrong font ascender, descender and height.
I'll raise the issue with FreeType devs, but we should fix it locally too.
There's a bug in FreeType lib that manifests only for certain fonts:
https://github.com/axmolengine/axmol/blob/d8343ea6ad914790c6cedc2b31661dba65771f6b/3rdparty/freetype/src/sfnt/sfobjs.c#L1357-L1365
face->os2.fsSelection & 128
should beface->os2.fsSelection & 64
. Even the comment says it should test bit 7, but it's testing bit 8. This sets wrong font ascender, descender and height.I'll raise the issue with FreeType devs, but we should fix it locally too.
Issue on FreeType repo: https://gitlab.freedesktop.org/freetype/freetype/-/issues/1286