https://bugs.winehq.org/show_bug.cgi?id=37215
Bug ID: 37215 Summary: incorrect starting size of font antialias Product: Wine Version: 1.7.25 Hardware: x86-64 OS: FreeBSD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: henry.hu.sh@gmail.com
Created attachment 49474 --> https://bugs.winehq.org/attachment.cgi?id=49474 DPI=144, size=6
It seems like that wine incorrectly decides the starting size of which to use antialias. I'm testing with the SimSun font. My desktop DPI is 144. I'm using Xfce and force DPI to be 144 in the appearance settings.
xrdb -query | grep Xft:
Xft.antialias: 1 Xft.hintstyle: hintfull Xft.rgba: rgb Xft.dpi: 144
If I use mousepad (native app) and set the font to be SimSun: Up to size 8, it uses the font's embedded bitmap. With size >= 9, it uses the normal glyphs, awnd enables antialias. The results are always nice.
Next I tested wine's notepad. First, I tested with DPI=144 in winecfg. Up to size 8, it uses the font's embedded bitmap which is good. For 9 <= size <= 12, it uses the font's glyphs, but the antialias is off (!!!), and the text looks ugly. For size >= 14, antialias is on, and the results are good.
Next, I tested with DPI=96 in winecfg. For size=6, it uses anti-aliased glyphs, which is ok. For size=7 & 8, it uses glyphs without anti-alias. The results are ugly. But anyway the text is too small at this size, so that's not important. For size=9, it uses embedded bitmap which looks good. For size=10 & 11, it uses glyphs without anti-alias. The results are ugly. For size=12, it uses embedded bitmap which looks good. For 14 <= size <= 18, it uses glyphs without anti-alias. The results are ugly. For size >= 20, it uses anti-aliased glyphs which looks good.
If I load simsun with fontforge, it says that simsun has bitmap fonts at 12, 14 and 16.
So, is there some problem in calculating when to start using anti-alias?
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #1 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49475 --> https://bugs.winehq.org/attachment.cgi?id=49475 DPI=144, size=7
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #2 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49476 --> https://bugs.winehq.org/attachment.cgi?id=49476 DPI=144, size=8
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #3 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49477 --> https://bugs.winehq.org/attachment.cgi?id=49477 DPI=144, size=9
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #4 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49478 --> https://bugs.winehq.org/attachment.cgi?id=49478 DPI=144, size=10
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #5 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49479 --> https://bugs.winehq.org/attachment.cgi?id=49479 DPI=144, size=11
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #6 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49480 --> https://bugs.winehq.org/attachment.cgi?id=49480 DPI=144, size=12
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #7 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49481 --> https://bugs.winehq.org/attachment.cgi?id=49481 DPI=144, size=14
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #8 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49483 --> https://bugs.winehq.org/attachment.cgi?id=49483 mousepad, size=8
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #9 from Henry Hu henry.hu.sh@gmail.com --- Created attachment 49484 --> https://bugs.winehq.org/attachment.cgi?id=49484 mousepad, size=9
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #10 from Henry Hu henry.hu.sh@gmail.com --- This simsun seems to have a strange GASP table. It says: (version 3.03 rev 2) ppem <= 8: no grid fit, aa ppem <= 24: grid fit, no aa ppem <= 65535: grid fit, aa It has bitmaps for 12, 14, 16
Another simsun from win8.1: (version 5.13) ppem <= 7: no grid fit, aa, sym-smooth, no grid fit w/ sym-smooth ppem <= 17: grid fit, no aa, no sym-smooth, grid fit w/ sym-smooth ppem <= 59: grid fit, aa, sym-smooth, grid fit w/ sym-smooth ppem <= 65535: grid fit, aa, sym-smooth, grid fit w/ sym-smooth It has bitmaps for 12, 13, 14, 15, 16, 17
With the new simsun it seems to work fine...
https://bugs.winehq.org/show_bug.cgi?id=37215
--- Comment #11 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=37215
Henry Hu henry.hu.sh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Henry Hu henry.hu.sh@gmail.com --- This is mostly the problem with the font, not wine. I'll close it.
https://bugs.winehq.org/show_bug.cgi?id=37215
Henry Hu henry.hu.sh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID
https://bugs.winehq.org/show_bug.cgi?id=37215
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Austin English austinenglish@gmail.com --- Closing.