https://bugs.winehq.org/show_bug.cgi?id=46438
Bug ID: 46438 Summary: Fonts antialiasing does not work in Wine-i686 built on a x86-64 host Product: Wine Version: 4.0-rc5 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: aros@gmx.com Distribution: ---
Created attachment 63221 --> https://bugs.winehq.org/attachment.cgi?id=63221 winecfg
It's not the first time I'm facing this issue and now that I'm finally sick and tired of it, I'm filing a bug report because I want to figure out once and for all why I'm affected.
I run Fedora 29 64 and I'm building Wine this way:
export CFLAGS="-O2 -pipe -m32 -march=pentium-m" export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
./configure --prefix=/opt/wine --disable-tests && make && make install
Wine seemingly successfully finds and uses the necessary libraries:
$ strace -e file -fF notepad 2>&1 | egrep "freetype|libfontconf" [pid 20804] openat(AT_FDCWD, "/lib/libfreetype.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 14 [pid 20804] openat(AT_FDCWD, "/lib/libfontconfig.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 14 [pid 20782] openat(AT_FDCWD, "/lib/libfreetype.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5 [pid 20782] openat(AT_FDCWD, "/lib/libfontconfig.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5 [pid 20775] openat(AT_FDCWD, "/lib/libfreetype.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 10 [pid 20775] openat(AT_FDCWD, "/lib/libfontconfig.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 10 [pid 20808] openat(AT_FDCWD, "/lib/libfreetype.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 8 [pid 20808] openat(AT_FDCWD, "/lib/libfontconfig.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 8
However fonts are not antialiased.
Please advise.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #1 from Artem S. Tashkinov aros@gmx.com --- Created attachment 64722 --> https://bugs.winehq.org/attachment.cgi?id=64722 Tahoma size >= 14 is antialiased
Strangely starting with a certain size, fonts are antialiased.
https://bugs.winehq.org/show_bug.cgi?id=46438
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Fonts antialiasing does not |Fonts antialiasing does not |work in Wine-i686 built on |work in wine i686 built on |a x86-64 host |a x86-64 host for small | |font sizes (<14)
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #2 from Artem S. Tashkinov aros@gmx.com --- Tahoma size <=6 is also antialiased.
So, fonts sizes from 7 to 13 are not antialiased while all others are antialiased.
I don't have a fontconfig configuration file for that. For my native Linux applications all fonts sizes are antialiased.
https://bugs.winehq.org/show_bug.cgi?id=46438
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Fonts antialiasing does not |Fonts antialiasing does not |work in wine i686 built on |work in wine i686 built on |a x86-64 host for small |a x86-64 host for fonts |font sizes (<14) |sizes > 6 and < 14
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Artem S. Tashkinov from comment #2)
Tahoma size <=6 is also antialiased.
So, fonts sizes from 7 to 13 are not antialiased while all others are antialiased.
I don't have a fontconfig configuration file for that. For my native Linux applications all fonts sizes are antialiased.
Looks like a limitation imposed by a 'gasp' table, that's not a bug at all.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- (In reply to Dmitry Timoshkov from comment #3)
(In reply to Artem S. Tashkinov from comment #2)
Tahoma size <=6 is also antialiased.
So, fonts sizes from 7 to 13 are not antialiased while all others are antialiased.
I don't have a fontconfig configuration file for that. For my native Linux applications all fonts sizes are antialiased.
Looks like a limitation imposed by a 'gasp' table, that's not a bug at all.
Indeed, that's the way it's supposed to work with grayscale antialiasing. You should enable subpixel antialiasing if you want it for all sizes.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #5 from Artem S. Tashkinov aros@gmx.com --- (In reply to Alexandre Julliard from comment #4)
(In reply to Dmitry Timoshkov from comment #3)
(In reply to Artem S. Tashkinov from comment #2)
Tahoma size <=6 is also antialiased.
So, fonts sizes from 7 to 13 are not antialiased while all others are antialiased.
I don't have a fontconfig configuration file for that. For my native Linux applications all fonts sizes are antialiased.
Looks like a limitation imposed by a 'gasp' table, that's not a bug at all.
Indeed, that's the way it's supposed to work with grayscale antialiasing. You should enable subpixel antialiasing if you want it for all sizes.
Why isn't it enabled by default and/or following system-wide fontconfig settings?
And how can it be enabled?
I've changed FontSmoothingType to 2 from default 1 and nothing has changed.
Windows Registry Editor Version 5.00
Here's my Wine registry:
[HKEY_CURRENT_USER\Control Panel\Desktop] "FontSmoothing"="2" "FontSmoothingGamma"=dword:00000000 "FontSmoothingOrientation"=dword:00000001 "FontSmoothingType"=dword:00000002
It would be great if font antialiasing was available via winecfg.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #6 from Artem S. Tashkinov aros@gmx.com --- Created attachment 64725 --> https://bugs.winehq.org/attachment.cgi?id=64725 HKEY_CURRENT_USER\Control Panel\Desktop
And why is there no documentation for various Font* settings in registry?
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #7 from Artem S. Tashkinov aros@gmx.com --- (In reply to Dmitry Timoshkov from comment #3)
(In reply to Artem S. Tashkinov from comment #2)
Tahoma size <=6 is also antialiased.
So, fonts sizes from 7 to 13 are not antialiased while all others are antialiased.
I don't have a fontconfig configuration file for that. For my native Linux applications all fonts sizes are antialiased.
Looks like a limitation imposed by a 'gasp' table, that's not a bug at all.
I have Wine built on my CentOS 6 i686 host and all fonts are antialiased by default using RGB subpixel hinting.
On Fedora 30 x86_64/Wine i686 font antialiasing works only for specified sizes and it's not using subpixel hinting.
I'm using the same wine prefix and fonts configuration in both OSes.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #8 from Artem S. Tashkinov aros@gmx.com --- So, what am I missing?
https://bugs.winehq.org/show_bug.cgi?id=46438
Artem S. Tashkinov aros@gmx.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #9 from Artem S. Tashkinov aros@gmx.com --- I'm closing this bug report because now we have a different issue: font antialiasing cannot be disabled at all, bug 50156.
https://bugs.winehq.org/show_bug.cgi?id=46438
--- Comment #10 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=46438
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Austin English austinenglish@gmail.com --- Closing.