This fixes font scaling issues with CFF fonts this was discovered from games utilizing DxLib. https://github.com/yumetodo/DxLib/tree/master https://dxlib.xsrv.jp/index.html I've ran tests on both Windows and to confirm that this change is consistent with a number of fonts. Before: {width=801 height=600} After (this matches the windows visual from testing in a VM): {width=767 height=572} Related Proton Issue: https://github.com/ValveSoftware/Proton/issues/7299 Full Disclosure: An LLM was used to assist in finding this bug, the original fix written by the LLM wrote a loader binary that changed the pointers for `` GetTextMetricsA `` and `` GetTextMetricsW `` to point to a custom implementation that always set `` tmExternalLeading ``. The LLM determined that `` GDI returns 0 when (winAscent + winDescent) > (Ascender - Descender) ``, after testing on WIndows I found this to be incorrect, the actual difference is that CFF fonts always set \``` tmExternalLeading` `` to 0. The test case for this fix was LLM generated. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10603