https://bugs.winehq.org/show_bug.cgi?id=41687
Bug ID: 41687 Summary: odd effect of activating font smoothing Product: Wine Version: 1.9.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: galtgendo@o2.pl Distribution: ---
I'm not sure if this is a bug or not, yet the effect can potentially negatively affect various apps.
Probably even regedit shows it, but to pick a random external app that shows a problem, let's look at Cheat Engine 6.6.
In its Help Menu, there's 'Cheat Engine Tutorial(64-bit)' option.
If FontSmoothing (that registry option) is off, it fits the menu. But if it's on, the text is just a bit too wide, so it's cut off. It's also noticeable on keyboard shortcuts.
https://bugs.winehq.org/show_bug.cgi?id=41687
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Is this still an issue in wine-3.3?
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- ...I'd say this is trivial to check.
Yes, still valid.
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Trivial, not for me. Font smoothing doesn't seem to work for me at all, so I don't have this issue. Mind providing a screenshot?
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #4 from Rafał Mużyło galtgendo@o2.pl --- ...getting a screenshot of an open menu is a bit tricky... We'll see.
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #5 from Rafał Mużyło galtgendo@o2.pl --- Created attachment 60675 --> https://bugs.winehq.org/attachment.cgi?id=60675 menu without FontSmoothing
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #6 from Rafał Mużyło galtgendo@o2.pl --- Created attachment 60676 --> https://bugs.winehq.org/attachment.cgi?id=60676 menu with FontSmoothing
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #7 from Rafał Mużyło galtgendo@o2.pl --- Probably didn't crop it correctly (cause for menu screenshots you need to get whole desktop), but the difference should be obvious.
https://bugs.winehq.org/show_bug.cgi?id=41687
Rafał Mużyło galtgendo@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|odd effect of activating |significant differences in |font smoothing |font width between | |FontSmoothing=0 and other | |cases
--- Comment #8 from Rafał Mużyło galtgendo@o2.pl --- So, I've tried poking at dlls/gdi32/freetype.c, but given that even FontSmoothing=1 triggers this problem, there seem to be very little difference between GGO_BITMAP and GGO_GRAY*_BITMAP cases in outline case, so I got nowhere atm.
Hints appreciated.
https://bugs.winehq.org/show_bug.cgi?id=41687
--- Comment #9 from Rafał Mużyło galtgendo@o2.pl --- ...so, after a few more hours of making stabs in the dark, I finally stumbled upon something quite trivial, that for some reason worked.
Namely, if I turn the conditional 'load_flags |= FT_LOAD_NO_BITMAP' in get_glyph_outline into an unconditional one, things just fit...
Still need to figure out why that works, cause it would suggest that the case that was looking as if it was working correctly, was actually the one that was incorrect.