http://bugs.winehq.org/show_bug.cgi?id=10583
Summary: Fonts: Subpixel hinting, No RGB or BGR Product: Wine Version: 0.9.49. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: lorefice2@libero.it
Created an attachment (id=9386) --> (http://bugs.winehq.org/attachment.cgi?id=9386) Screenshot showing kwrite and Notepad doing font antialiasing.
As you can see in the attached file, while wine does a good job in antialiasing and hinting fonts, subpixel rendering, using RGB (but i tested BGR too), is not present. I tried with ClientSideAntialiasWithCore=Y (ClientSideWithRender=N) and ClientSideAntialiasWithRended=Y (ClientSideWithRender=Y), disabled any library override, but it didn't help.
--------------------------------------------- Zool ~ # cat ~/.fonts.conf <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font" > <edit mode="assign" name="rgba" > <const>rgb</const> </edit> </match> <match target="font" > <edit mode="assign" name="hinting" > <bool>true</bool> </edit> </match> <match target="font" > <edit mode="assign" name="hintstyle" > <const>hintfull</const> </edit> </match> <match target="font" > <edit mode="assign" name="antialias" > <bool>true</bool> </edit> </match> </fontconfig> --------------------------------------------- Zool ~ # xrdb -q|grep Xft Xft.antialias: 1 Xft.autohint: 0 Xft.dpi: 96.000000 Xft.hinting: 1 Xft.hintstyle: hintfull Xft.rgba: rgb
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2007-11-28 14:18:30 --- Don't run wine as root.
Did you change the system-wide fonts.conf file? If that works, this is a dup of bug 3686.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #2 from Antonio lorefice2@libero.it 2007-11-29 04:17:56 --- Thanks for answering, but sadly, it doesn't works. * i merged my ~/.fonts.conf in /etc/fonts/conf.d/fonts.conf *Just to be sure, i then removed antialiasing from thw sistem-wide fonts.conf file. * i restarted X * all my font apps were rendered without antialias, except wine.
So it appears to ignore both the local and the system-wide configurations.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #3 from Austin English austinenglish@gmail.com 2008-06-12 13:00:28 --- Is this still an issue in current (1.0-rc4 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10583
Erik Johnson junk1112@new.rr.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |junk1112@new.rr.com
--- Comment #4 from Erik Johnson junk1112@new.rr.com 2008-07-19 23:02:00 --- (In reply to comment #3)
Is this still an issue in current (1.0-rc4 or newer) wine?
(Also commented this on 10342: http://bugs.winehq.org/show_bug.cgi?id=10342)
Yes, subpixel rendering is still not enabled. I looked at the WINE code that manages the font rendering, and grayscale and "no antialiasing" are the only options. Subpixel rendering is listed as a to-do on winehq.org and also here: http://www.winehq.org/site/resources . In a similar but possibly separate issue, I'm not entirely sure, but it appears that WINE does its own "brute force" rendering of fonts, and completely ignores the user's .fonts.conf, or the system's /etc/fonts/conf.d/* files in how it renders the fonts. Perhaps this is somehow required in order to hammer the fonts into the spots where Windows programs expect them... I don't know. At the very least, subpixel rendering would probably solve a lot of users' gripes about WINE and fonts. (Do a search in google on "wine" and "subpixel" or "wine" and "cleartype".)
But IMHO, WINE should just be turning all the font rendering over to the user's system (freetype, xft, etc), under the assumption that the user knows how he/she wants the fonts to look, and has already configured their system thusly. If there is no reason for WINE to override what the user has set on their system, then it shouldn't. This prevents WINE from bearing the brunt of any "legal" issues about subpixel rendering.. it is simply using what the user has set up on the system.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #5 from Austin English austinenglish@gmail.com 2009-01-20 09:58:52 --- Subpixel rendering has been implemented, please retest.
http://bugs.winehq.org/show_bug.cgi?id=10583
Scott Ritchie scott@open-vote.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |scott@open-vote.org
--- Comment #6 from Scott Ritchie scott@open-vote.org 2009-04-16 17:42:03 --- When is subpixel hinting actually used? http://bugs.winehq.org/show_bug.cgi?id=16745 suggests there might be a configuration issue.
http://bugs.winehq.org/show_bug.cgi?id=10583
Adys adys.wh+winehqdotorg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh+winehqdotorg@gmail.c | |om
--- Comment #7 from Adys adys.wh+winehqdotorg@gmail.com 2009-04-17 05:21:59 --- (In reply to comment #5)
Subpixel rendering has been implemented, please retest.
I'm pretty sure both RGB and BGR have been implemented.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #8 from Austin English austinenglish@gmail.com 2009-10-29 15:25:16 --- Is this still an issue in current (1.1.32 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10583
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |integration
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #9 from Austin English austinenglish@gmail.com 2010-05-21 13:40:16 --- (In reply to comment #6)
When is subpixel hinting actually used? http://bugs.winehq.org/show_bug.cgi?id=16745 suggests there might be a configuration issue.
I think this may be fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=922e15cbd04fde3d9d4fbb...
http://bugs.winehq.org/show_bug.cgi?id=10583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2010-05-21 14:03:34 --- Yes, we should now respect the fontconfig settings.
http://bugs.winehq.org/show_bug.cgi?id=10583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2010-05-21 14:38:36 --- Closing bugs fixed in 1.2-rc1.
http://bugs.winehq.org/show_bug.cgi?id=10583
Sebastian Thürrschmidt thuerrschmidt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thuerrschmidt@gmail.com
--- Comment #12 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2010-05-21 23:56:05 --- I just updated wine to 1.2-rc1 from the PPA for Ubuntu Wine Team (Lucid). Now all my fonts look much too thin in Wine, kind of pale and greyish, so much so that I find them really hard to read. They are certainly anti-aliased, but definitely not in the way as either my Gnome Appearence settings (subpixel smoothing, slight hinting, RGB subpixel order) or my ~/.fonts.conf (very similar to Antonio's above, except that my hintstyle is set to hintfull) specify.
Removing the old Windows-type registry settings for anti-aliasing from user.reg didn't make a difference. By tweaking those I had managed to make identical fonts at identical sizes look very similar in Wine vs. native Linux applications (although they tended to come out slightly fatter in Wine, just the opposite from what's happening now).
Am I doing something wrong? Could this be a bug in how Wine handles fontconfig's hinting settings? Any suggestions are welcome. I'd also be happy to provide more details as well as screenshots if necessary.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #13 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2010-05-21 23:58:43 --- Sorry, I meant to say hintstyle is set to hintslight in my ~/.fonts.conf, matching my Appearence settings.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #14 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2010-05-29 09:33:25 --- After updating to 1.2-rc2, hinting works as expected. Fonts are looking better now than ever before in Wine. Wow.
http://bugs.winehq.org/show_bug.cgi?id=10583
--- Comment #15 from Richard shiningarcanine@gmail.com 2010-06-08 12:19:10 --- Created an attachment (id=28677) --> (http://bugs.winehq.org/attachment.cgi?id=28677) Screenshot showing rendering of part of sunspider under native and windows versions of Firefox
This does not appear to be fixed in WINE 1.2 RC2. I am running Firefox both natively and through WINE under LXDE on Gentoo Linux. I usually run KDE, but I was giving LXDE a try today. Here is a screenshot from KMag. The left is the WINE firefox and the right is the Linux firefox. No subpixel render appears to be being done.
http://bugs.winehq.org/show_bug.cgi?id=10583
Richard shiningarcanine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #28677|Screenshot showing |Screenshot showing part of description|rendering of part of |rendering of Sunspider |sunspider under native and |under linux and windows |windows versions of Firefox |versions of Firefox
http://bugs.winehq.org/show_bug.cgi?id=10583
Richard shiningarcanine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shiningarcanine@gmail.com
--- Comment #16 from Richard shiningarcanine@gmail.com 2010-06-08 13:05:27 --- (In reply to comment #15)
Created an attachment (id=28677)
--> (http://bugs.winehq.org/attachment.cgi?id=28677) [details]
Screenshot showing rendering of part of sunspider under native and windows versions of Firefox
This does not appear to be fixed in WINE 1.2 RC2. I am running Firefox both natively and through WINE under LXDE on Gentoo Linux. I usually run KDE, but I was giving LXDE a try today. Here is a screenshot from KMag. The left is the WINE firefox and the right is the Linux firefox. No subpixel render appears to be being done.
Ignore that comment. It seems that WINE was compiled without fontconfig support on my system. Recompiling it with fontconfig support fixed it.