https://bugs.winehq.org/show_bug.cgi?id=47085
Bug ID: 47085 Summary: Spellforce 3 fonts problem Product: Wine Version: 4.7 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mo78@abv.bg Distribution: ---
Created attachment 64279 --> https://bugs.winehq.org/attachment.cgi?id=64279 Spellforce 3 fonts problem
The game runs well with DXVK but the fonts are almost unreadable as you can see in the attachment.
I tried to install ALL available fonts in winetricks but this doesn't help. I tried the UO and Fonts ingame scaling option to no avail. The one thing that improves the situation is to choose very high resololution (FullHD or higher). Then the fonts are readable but are not aligned, every single character is with different height and is difficult to read them.
https://bugs.winehq.org/show_bug.cgi?id=47085
mo78@abv.bg changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mo78@abv.bg
--- Comment #1 from mo78@abv.bg --- Created attachment 64280 --> https://bugs.winehq.org/attachment.cgi?id=64280 Spellforce 3 fonts problem
Spellforce 3 fonts problem
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #2 from mo78@abv.bg --- When in Full HD resolution the Main Menu fonts are somewhat normal but all other fonts are rendered incorectly. I'll made additional attachments right now.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #3 from mo78@abv.bg --- Created attachment 64281 --> https://bugs.winehq.org/attachment.cgi?id=64281 Spellforce 3 Full HD Main Menu fonts
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #4 from mo78@abv.bg --- Created attachment 64282 --> https://bugs.winehq.org/attachment.cgi?id=64282 Spellforce 3 Full HD fonts
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Do you see the same issue with fonts if you don't use dxvk? Does resolution change make any difference on Windows?
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #6 from mo78@abv.bg --- I don't use Windows sorry but I watched some videos on YouTube and there everything is normal. The fonts problem is present without DXVK too.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 64284 --> https://bugs.winehq.org/attachment.cgi?id=64284 test patch
I'm curious if it's a regression. Could you try this patch to see if it gets any better?
https://bugs.winehq.org/show_bug.cgi?id=47085
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #64284|0 |1 is obsolete| |
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 64285 --> https://bugs.winehq.org/attachment.cgi?id=64285 test patch v2
Updating the patch.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #9 from mo78@abv.bg --- Thank you but unfortunately it doesn't help :)
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #10 from mo78@abv.bg --- According to the developer ov DXVK the fonts problems came from Direct2D/DWrite issues:
https://github.com/ValveSoftware/Proton/issues/1033#issuecomment-489063878
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- Could you attach +dwrite,+d2d log for main menu?
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #12 from mo78@abv.bg --- Sure :)
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #13 from mo78@abv.bg --- Created attachment 64382 --> https://bugs.winehq.org/attachment.cgi?id=64382 Spellforce 3 +dwrite,+d2d log
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #14 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 64384 --> https://bugs.winehq.org/attachment.cgi?id=64384 test patch 3
That's probably an issue with outline mode in Direct2D.
Application is asking for it explicitly:
--- 810656 002d:trace:dwrite:dwritefactory_CreateCustomRenderingParams (0x13f22e0)->(2.000000 0.000000 0.000000 0 6 0x22fac8) 810657 002d:trace:dwrite:dwritefactory3_CreateCustomRenderingParams (0x13f22e0)->(2.00 0.00 1.00 0.00 0 6 0 0x22f940) 810658 002d:trace:d2d:d2d_device_context_SetTextRenderingParams iface 0x3086a30, text_rendering_params 0x3088020. ---
and it's not the best choice for sizes that small, both for performance and quality.
Please try this patch when you can. I'll take a look at fixing wrong coordinates because that would be directwrite side of the problem most likely, aliased bitmaps will be direct2d fault.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #15 from mo78@abv.bg --- Thank you :) I tried the new patch but unforunately it doesn't help.
https://bugs.winehq.org/show_bug.cgi?id=47085
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |dwrite Summary|Spellforce 3 fonts problem |Spellforce 3 has misplaced | |text in main menu Ever confirmed|0 |1 Assignee|wine-bugs@winehq.org |bunglehead@gmail.com Status|UNCONFIRMED |NEW
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #17 from Nikolay Sivov bunglehead@gmail.com --- This should look better now, please try with current wine-git.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #18 from mo78@abv.bg --- Yes there is great improvement! Just a little more:
https://i.imgur.com/iYhC5kh.png
Thank you very much!!!
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #19 from Nikolay Sivov bunglehead@gmail.com --- Patch from comment 14 will improve it further. There is sill some issues with positions, probably coming from differences between returned outlines/bitmaps vs design metrics.
https://bugs.winehq.org/show_bug.cgi?id=47085
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead@gmail.com |wine-bugs@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #20 from mo78@abv.bg --- Yes they are looking great now:
https://i.imgur.com/qnNeet3.png
Thank you very much!!!
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #21 from mo78@abv.bg --- Will the patch go upstream?
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #22 from Nikolay Sivov bunglehead@gmail.com --- (In reply to mo78 from comment #21)
Will the patch go upstream?
Not in this form, no. Proper way would be to implement AA mode in our direct2d. Are you okay with marking this one fixed (regarding misplaced glyphs)? Lower quality issue deserves another bug report.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #23 from mo78@abv.bg --- They seem good to me, so yes :)
Do you know when the patch will be ready?
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #24 from mo78@abv.bg --- The AA mode implementation, not the patch. I'm sorry :)
https://bugs.winehq.org/show_bug.cgi?id=47085
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |421c83cd7b15a42617fd942888e | |ca0c81f6d2278
--- Comment #25 from Nikolay Sivov bunglehead@gmail.com --- Marking fixed, 421c83cd7b15a42617fd942888eca0c81f6d2278.
(In reply to mo78 from comment #24)
The AA mode implementation, not the patch. I'm sorry :)
I'm not aware of anyone working on it.
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #26 from mo78@abv.bg --- "Marking fixed, 421c83cd7b15a42617fd942888eca0c81f6d2278."
Excuse my ignorance but is that mean the fonts will look good with 4.9 as good as we use the patch?
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #27 from Nikolay Sivov bunglehead@gmail.com --- They will look the same as they do with current wine-git (without the patch from comment 14).
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #28 from mo78@abv.bg --- I see. Thank you :)
https://bugs.winehq.org/show_bug.cgi?id=47085
--- Comment #29 from mo78@abv.bg --- Hmm, actually there are still misplaced glyphs. Look at "r" and "s":
https://i.imgur.com/qnNeet3.png
For reference see this Windows screenshot found on the Web:
https://i.imgur.com/hzUsZiD.jpg
https://bugs.winehq.org/show_bug.cgi?id=47085
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #30 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.9.