https://bugs.winehq.org/show_bug.cgi?id=42171
Bug ID: 42171 Summary: IrfanView's 4.44 Help -> About window has wrong placement for textboxes Product: Wine Version: 2.0-rc4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: dark.shadow4@web.de Distribution: ArchLinux
Created attachment 56775 --> https://bugs.winehq.org/attachment.cgi?id=56775 Wrong placement of labels
Note: Split of and blocked by 6682, only works with patches not yet in wine. https://source.winehq.org/patches/data/128612 https://source.winehq.org/patches/data/128613
The textboxes in irfanviews about dialog overlap the image. The issue is somehow related to Bug 41639. If my lib32-freetype2 is up to date with version 2.7, the font is ugly, but it renders fine. If downgraded, the font is fine, but the placement is wrong.
I can submit a testcase for that, but which font can I rely on? Wine doesn't have all fonts after all. Tahoma maybe?
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Created attachment 56776 --> https://bugs.winehq.org/attachment.cgi?id=56776 Correctly rendered with freetype 2.7, but ugly font
https://bugs.winehq.org/show_bug.cgi?id=42171
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |6682, 41639
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Yes, Tahoma is default for dialogs.
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Created attachment 56777 --> https://bugs.winehq.org/attachment.cgi?id=56777 Test program to check if wine font size equals size on windows
(In reply to Nikolay Sivov from comment #2)
Yes, Tahoma is default for dialogs.
Thanks, I just checked, but the dialog seems to request "Microsoft Sans Serif".
I attached a small test program to show the issue, it's hacky but it works.
Output on windows:
Font gotten: Microsoft Sans Serif Correct size: 8
On linux with freetype 2.6.5
Font gotten: Arial Wrong size: got 7, expected 8.
On linux with freetype 2.6.5
Font gotten: Arial Correct size: 8
Maybe a font substitution problem? But it does work with newer freetype...
https://bugs.winehq.org/show_bug.cgi?id=42171
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #56777|0 |1 is obsolete| |
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Created attachment 56778 --> https://bugs.winehq.org/attachment.cgi?id=56778 Updated test program to show the issue
Extended my test program and run a few more tests...
Windows:
Font gotten: Microsoft Sans Serif Got size: got 8 sz: 405, 16 Font gotten: Arial Got size: got 7 sz: 389, 16
Linux freetype 2.7
Font gotten: Arial Got size: got 8 sz: 397, 16 Font gotten: Arial Got size: got 8 sz: 397, 16
Linux freetype 2.6.5
Font gotten: Arial Got size: got 7 sz: 389, 16 Font gotten: Arial Got size: got 7 sz: 389, 16
New freetype seems to render the chars bigger. GdiGetCharDimensions does cut off decimals:
(sz.cx / 26 + 1) / 2
For freetype 2.7 this is
15.2692307692 --> 15
For freetype 2.6.5 this is
14.9615384615 -> 14
When on freetype 2.6.5 Arial is rendered to small. We can't even implement a rounding for such cases, because if we actually request Arial as font, it needs to be that way. When on freetype 2.7 Arial is rendered bigger, what changes the size from what we expect on windows.. But it works fine in that specific case, where Arial is substituted...
So we actually have two issues here, Arial being a bad substitution, and freetype 2.7 leading to Arial being to big.
https://bugs.winehq.org/show_bug.cgi?id=42171
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
https://bugs.winehq.org/show_bug.cgi?id=42171 Bug 42171 depends on bug 6682, which changed state.
Bug 6682 Summary: IrfanView's 4.44 Help -> About window is missing a picture on the left https://bugs.winehq.org/show_bug.cgi?id=6682
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=42171 Bug 42171 depends on bug 6682, which changed state.
Bug 6682 Summary: IrfanView's 4.44 Help -> About window is missing a picture on the left https://bugs.winehq.org/show_bug.cgi?id=6682
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |---
https://bugs.winehq.org/show_bug.cgi?id=42171
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #5 from Fabian Maurer dark.shadow4@web.de --- Still an issue in wine-3.0-rc5, when using old freetype or specifying FREETYPE_PROPERTIES="truetype:interpreter-version=35".
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- Created attachment 60171 --> https://bugs.winehq.org/attachment.cgi?id=60171 Hack to fix the issue
I made a hack for that issue already a year ago, attaching it now. It solves the issue, but is probably not the way to go.
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #7 from Artem S. Tashkinov aros@gmx.com --- This might be fixed in Wine-4.7. Please recheck.
https://bugs.winehq.org/show_bug.cgi?id=42171 Bug 42171 depends on bug 41639, which changed state.
Bug 41639 Summary: Wine with freetype 2.7 causes font rendering issues https://bugs.winehq.org/show_bug.cgi?id=41639
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=42171 Bug 42171 depends on bug 6682, which changed state.
Bug 6682 Summary: IrfanView's 4.44 Help -> About window is missing a picture on the left https://bugs.winehq.org/show_bug.cgi?id=6682
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=42171
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Still an issue as of wine-7.5, see comment 5.