http://bugs.winehq.org/show_bug.cgi?id=14902
Summary: Fonts in apps are anti-aliased/hinted in contrast to system setting Product: Wine Version: 1.1.2 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: fonts AssignedTo: wine-bugs@winehq.org ReportedBy: katonag@gmail.com
Created an attachment (id=15471) --> (http://bugs.winehq.org/attachment.cgi?id=15471) Figure to illustrate the difference in linux native and wine programs fonts
MS truetype fonts are installed for OpenSUSE11, and the system is set according to http://en.opensuse.org/Optimal_Use_of_Fonts_on_SuSE, so anti-aliasing is disabled for font size under 13, the bytecode interpreter threshold is set to 18 points, hinting disabled. The settings are working seamlessly for native Linux programs, the fonts are sharp. However in windows applications (about 20 tested so far) the fonts are rendered hinted/anti-aliased regardless of their size and type. Smaller fonts are simply blurry, not even polished. This is the case with and without fonts installed using winetricks.
See attached figure: On the left side there is a Krusader screenshot using Tahoma 8px bold. On the right side the same with Total Commander under Wine using the same Tahoma 8px bold fonts. The difference is clearly visible without magnifying.
Expected behavior: the fonts should be sharp as the system wide font settings define. Wine should simply follow system settings.
http://bugs.winehq.org/show_bug.cgi?id=14902
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-18 09:41:12 --- Wine handles font gray levels according to the TTF 'gasp' table. That's what Windows apps expect, not what you specify. The details are in dlls/winex11.drv/xrender.c
http://bugs.winehq.org/show_bug.cgi?id=14902
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-18 09:41:24 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #3 from Gábor Katona katonag@gmail.com 2008-08-18 09:46:53 --- (In reply to comment #1)
Wine handles font gray levels according to the TTF 'gasp' table. That's what Windows apps expect, not what you specify. The details are in dlls/winex11.drv/xrender.c
In this case fonts should look exactly the same as under windows if I understand correctly. If this is the case, then something doesn't work correctly, as fonts are blurry even using MS native fonts. Could you comment on this?
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-18 09:53:42 --- (In reply to comment #3)
In this case fonts should look exactly the same as under windows if I understand correctly. If this is the case, then something doesn't work correctly, as fonts are blurry even using MS native fonts. Could you comment on this?
There are several things to take into account for a formal comparison: 1. the fonts (font files) must be exactly the same 2. freetype must have patented hinting enabled 3. even with patented hinting enabled freetype renders fonts slightly differently from Windows rasterizer
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #5 from Gábor Katona katonag@gmail.com 2008-08-19 03:25:10 --- Created an attachment (id=15482) --> (http://bugs.winehq.org/attachment.cgi?id=15482) Fonts under native windows
Ok, I see the points, but the main problem is, that fonts under wine look different both from as in native Linux apps, and as under windows itself. Have a look at this attachment. This is the same screenshot as before, but under native windows. The fonts are the same too. Comparing the 3 shots it can be seen that the fonts under native windows and under Linux (with the modification described above) are exactly the same. Whereas the wine fonts differ, while the font files are exactly the same.
Is this the normal and planned behavior?
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #6 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-19 03:47:24 --- Your screenshots don't show enough evidence. Only the test app which has full control on used APIs can provide some insight.
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #7 from Gábor Katona katonag@gmail.com 2008-08-19 04:29:32 --- What test app do you mean? I will gladly run it.
My screenshots clearly show after magnification, that there is anti-aliasing in the wine run app, and there is no anti-aliasing under windows and Linux.
http://bugs.winehq.org/show_bug.cgi?id=14902
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-19 04:45:15 --- I mean a test app which calls say ExtTextOut Win32 API, compare the results, and try to investigate/find out source of the difference.