[Bug 47139] New: SetWorldTransform faulty when rendering text with DrawTextEx
https://bugs.winehq.org/show_bug.cgi?id=47139 Bug ID: 47139 Summary: SetWorldTransform faulty when rendering text with DrawTextEx Product: Wine Version: 4.7 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs(a)winehq.org Reporter: zen253231(a)gmail.com Distribution: --- Created attachment 64368 --> https://bugs.winehq.org/attachment.cgi?id=64368 Text is cut on all sides when turned Since at least wine 3.16 up to 4.7 when using DrawTextEx with (either DT_WORDBREAK, either DT_SINGLELINE) Or DT_CALCRECT, SetWorldTransform fails to transform correctly the size of text box and cuts text to display inclined. The 4 coefficients of Xform are used to compute transformation. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #1 from zen253231(a)gmail.com --- Created attachment 64369 --> https://bugs.winehq.org/attachment.cgi?id=64369 Text drawn correctly using gdiplus with wine -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47139 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #2 from joaopa <jeremielapuree(a)yahoo.fr> --- Does the bug still occur with wine-6.5? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #3 from zen253231(a)gmail.com --- (In reply to joaopa from comment #2)
Does the bug still occur with wine-6.5?
Yep, bug still occurs and seem to be other compatibility problems as well -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #4 from zen253231(a)gmail.com ---
(In reply to joaopa from comment #2)
Does the bug still occur with wine-6.5?
Yep, bug still occurs and seem to be other compatibility problems as well
In fact at a second glance it may have been better but clearly not solved when turning more degrees. Anyway I couldn't try more than two or three times because there is a heavy regression from Wine 6.4 preventing me to use it -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=47139 gianluca+wine@sottospazio.it changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gianluca+wine@sottospazio.i | |t --- Comment #5 from gianluca+wine@sottospazio.it --- Created attachment 81069 --> http://bugs.winehq.org/attachment.cgi?id=81069 reproducer Hello, I'm experiencing the same issue with SetWorldTransform() and the DrawText() with Wine 11.9. I hereby attach a small application that reproduces the issue: it draws a rectangle and writes some text into it. A timer of 1 second changes the affine transform to rotate the drawing by 180 degrees using SetWorldTransform(). In Windows the text is correctly transformed, i.e. rotated by 180 degrees but in WINE the text is rendered normally and not transformed at all (although at the correctly rotated position). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #6 from Dmitry Timoshkov <dmitry@baikal.ru> --- Probably duplicate of the bug 33190. Does using wine-staging help? https://gitlab.winehq.org/wine/wine-staging/-/tree/master/patches/win32u-NtG... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #7 from gianluca+wine@sottospazio.it --- Hello, thanks for your suggestion: I just tried wine-staging but even with your patches applied the text is still not rotated. Somehow they only changed the position at which the text is drawn. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=47139 --- Comment #8 from gianluca+wine@sottospazio.it --- Hello, I did more tests: using another font instead of the SYSTEM FONT correctly rotates the text in wine-staging with your patches applied. In Wine 11.9 the text is rotated but placed in the wrong position. So there are two problems: * the SYSTEM FONT (bitmap?) is not rotated; * the position of the text is wrong (but fixed by your patches). I had a look at the merge request and it's unfortunate that these patches aren't merged yet... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=47139 Dmitry Timoshkov <dmitry@baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #9 from Dmitry Timoshkov <dmitry@baikal.ru> --- (In reply to gianluca+wine from comment #8)
I did more tests: using another font instead of the SYSTEM FONT correctly rotates the text in wine-staging with your patches applied.
Thanks for testing. Let's mark this bug as a duplicate then. *** This bug has been marked as a duplicate of bug 33190 *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (3)
-
wine-bugs@winehq.org -
WineHQ Bugzilla -
WineHQ Bugzilla