https://bugs.winehq.org/show_bug.cgi?id=56165
Bug ID: 56165 Summary: GetTextExtentPoint32W returns incorrect sizes Product: Wine Version: 8.0 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: creatorcray@gmail.com
Created attachment 75870 --> https://bugs.winehq.org/attachment.cgi?id=75870 Source for the test that demonstrates the issue
Starting with Wine7 the GetTextExtentPoint32W is telling porkies for non-antialiased fonts in quite a range of various heights and weights. Somehow if string has more uppercase letters it makes it more prone to has its size miscalculated
See attached source/binary/screenshots
The demo binary has 2 modes: showing the end of the text as calculated by GetTextExtentPoint32W and checkerboard pattern highlighting of the text, switchable by pressing a spacebar