[Bug 50241] New: Vertical Text in NL5 schematic doesn't display correctly
https://bugs.winehq.org/show_bug.cgi?id=50241 Bug ID: 50241 Summary: Vertical Text in NL5 schematic doesn't display correctly Product: Wine Version: 5.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: rmm(a)cantrip.org Distribution: --- Created attachment 68751 --> https://bugs.winehq.org/attachment.cgi?id=68751 Should show R5 and 10e+6 vertically Hi All, NL5 circuit simulator has worked very well in Wine for years. A change in Wine 5.22 or possibly 5.21 has broken vertical text rendering. It shows up at a 45 degree angle instead, with strange spacing. I'm running Wine 5.22 (Fedora packages) on Fedora 32. I will attach an image... Unfortunately I can't seem to revert back to 5.21 or 5.20 using DNF (without jumping through a lot of hoops) to show you what it should look like. I've reached out to the developer and he said the code that rotates the text uses the LOGFONT structure to set the orientation of the text: if ( textdir != 0 ) { LOGFONT lf; // Windows native font structure ZeroMemory(&lf, sizeof(LOGFONT)); lf.lfHeight = Canvas->Font->Height; lf.lfEscapement = (4-textdir)*900; // degrees to rotate lf.lfOrientation = (4-textdir)*900; lf.lfCharSet = DEFAULT_CHARSET; strcpy(lf.lfFaceName, Canvas->Font->Name.c_str() ); Canvas->Font->Handle = CreateFontIndirect(&lf); } So something deep down in there changed in 5.21 or 5.22. An older bug, #14199 mentions that a similar problem was in gdi32. Thanks, Richard -- 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=50241 --- Comment #1 from Alexandre Julliard <julliard(a)winehq.org> --- I can't reproduce this. Could you please give a precise reproduction recipe? -- 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=50241 --- Comment #2 from Richard Myers <rmm(a)cantrip.org> --- Created attachment 69007 --> https://bugs.winehq.org/attachment.cgi?id=69007 Before rotating 'plus' -- 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=50241 --- Comment #3 from Richard Myers <rmm(a)cantrip.org> --- Hi Alexandre, Under Linux: 1. Download https://sidelinesoft.com/nl5/downloads/nl5.zip. 2. Unzip it into a directory called nl5 (anywhere). It contains a Win32 executable named nl5.exe. There is no installation necessary. Under Wine: 3. Run nl5.exe. 4. File->Open <nl5_dir>\Examples\demo\12-phase.nl5. 5. Locate the larger 'dot' above V4 with the word 'plus' printed next to it. 5. Left-click (to select) the larger 'dot' (label) next to the word 'plus'. 6. <Crtl-t> to rotate the text 'plus' from horizontal to vertical. It should rotate each letter -90 degrees, and stack them bottom to top, such that the 'p' is on the bottom, then 'l' above it, then 'u' above that, etc. I will attach an image if possible to show what it should look like (from a Virtual Windows machine). On my machine, it rotates the letters properly, but stacks them at a 45 degree angle. -- 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=50241 --- Comment #4 from Richard Myers <rmm(a)cantrip.org> --- Created attachment 69008 --> https://bugs.winehq.org/attachment.cgi?id=69008 Rotated properly (on a real Windows box). -- 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=50241 --- Comment #5 from Richard Myers <rmm(a)cantrip.org> --- Created attachment 69009 --> https://bugs.winehq.org/attachment.cgi?id=69009 Text rotation gone wrong under 'new' 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=50241 --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Thanks for the quick reply. I'm afraid I can't reproduce it. For some reason I can't make changes to 12-phase.nl5 (because I'm using the demo?) but if I open 555_astable.nl5, I can rotate text and everything looks good. Are you using the WineHQ packages, or the wine-staging ones from Fedora? -- 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=50241 --- Comment #7 from Richard Myers <rmm(a)cantrip.org> --- Hi, Dang, I guess it has to do with the number of components in the circuit. But in any case, if you were able to rotate the text, then the problem isn't in your version. Here's what Wine I'm using (from Fedora 32). Name : wine Version : 5.22 Release : 1.fc32 Architecture: x86_64 Install Date: Tue 01 Dec 2020 05:16:27 PM PST Group : Unspecified Size : 0 License : LGPLv2+ Signature : RSA/SHA256, Sun 22 Nov 2020 03:18:51 PM PST, Key ID 6c13026d12c944d0 Source RPM : wine-5.22-1.fc32.src.rpm Build Date : Sun 22 Nov 2020 01:52:50 PM PST Build Host : buildvm-x86-09.iad2.fedoraproject.org Packager : Fedora Project Vendor : Fedora Project URL : https://www.winehq.org/ Bug URL : https://bugz.fedoraproject.org/wine Summary : A compatibility layer for windows applications Description : Wine as a compatibility layer for UNIX to run Windows applications. This package includes a program loader, which allows unmodified Windows 3.x/9x/NT binaries to run on x86 and x86_64 Unixes. Wine can use native system .dll files if they are available. In Fedora wine is a meta-package which will install everything needed for wine to work smoothly. Smaller setups can be achieved by installing some of the wine-* sub packages. ------------------------------------ I don't know which (WineHQ or Staging) packages I'm using from Fedora. Can you tell from this list below or the rpm info above? wine-dxvk-1.7.2-1.fc32.x86_64 wine-5.22-1.fc32.x86_64 wine-cms-5.22-1.fc32.x86_64 wine-capi-5.22-1.fc32.i686 wine-courier-fonts-5.22-1.fc32.noarch wine-desktop-5.22-1.fc32.noarch wine-openal-5.22-1.fc32.x86_64 wine-ldap-5.22-1.fc32.i686 wine-dxvk-dxgi-1.7.2-1.fc32.x86_64 wine-times-new-roman-fonts-5.22-1.fc32.noarch wine-symbol-fonts-5.22-1.fc32.noarch wine-times-new-roman-fonts-system-5.22-1.fc32.noarch wine-dxvk-1.7.2-1.fc32.i686 wine-alsa-5.22-1.fc32.x86_64 wine-tahoma-fonts-system-5.22-1.fc32.noarch wine-fonts-5.22-1.fc32.noarch wine-opencl-5.22-1.fc32.x86_64 wine-pulseaudio-5.22-1.fc32.x86_64 wine-devel-5.22-1.fc32.x86_64 wine-alsa-5.22-1.fc32.i686 winetricks-20201206-1.fc32.noarch wine-twain-5.22-1.fc32.x86_64 wine-filesystem-5.22-1.fc32.noarch wine-opencl-5.22-1.fc32.i686 wine-pulseaudio-5.22-1.fc32.i686 wine-webdings-fonts-5.22-1.fc32.noarch wine-core-5.22-1.fc32.x86_64 wine-twain-5.22-1.fc32.i686 wine-dxvk-dxgi-1.7.2-1.fc32.i686 wine-ms-sans-serif-fonts-5.22-1.fc32.noarch wine-dxvk-d3d9-1.7.2-1.fc32.i686 wine-systemd-5.22-1.fc32.noarch wine-mono-5.1.1-1.fc32.noarch wine-common-5.22-1.fc32.noarch wine-core-5.22-1.fc32.i686 wine-marlett-fonts-5.22-1.fc32.noarch wine-capi-5.22-1.fc32.x86_64 wine-tahoma-fonts-5.22-1.fc32.noarch wine-fixedsys-fonts-5.22-1.fc32.noarch wine-ldap-5.22-1.fc32.x86_64 wine-cms-5.22-1.fc32.i686 wine-system-fonts-5.22-1.fc32.noarch wine-wingdings-fonts-system-5.22-1.fc32.noarch wine-openal-5.22-1.fc32.i686 wine-wingdings-fonts-5.22-1.fc32.noarch wine-dxvk-d3d9-1.7.2-1.fc32.x86_64 wine-arial-fonts-5.22-1.fc32.noarch wine-small-fonts-5.22-1.fc32.noarch I uploaded what it looks like to rotate the text on R1 in the 555_astable circuit. What version of Wine are you using? Thanks, Richard -- 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=50241 --- Comment #8 from Richard Myers <rmm(a)cantrip.org> --- Created attachment 69014 --> https://bugs.winehq.org/attachment.cgi?id=69014 R1 text rotated in 555_astable.nl5 -- 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=50241 --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> --- It would be interesting to try the wine-devel Fedora packages from WineHQ instead, if that's possible. -- 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=50241 --- Comment #10 from Richard Myers <rmm(a)cantrip.org> --- Not sure how to do that, but I'll look into it... Thanks! -- 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=50241 --- Comment #11 from Zebediah Figura <z.figura12(a)gmail.com> --- (In reply to Richard Myers from comment #10)
Not sure how to do that, but I'll look into it...
See <https://wiki.winehq.org/Fedora> for more details. -- 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=50241 --- Comment #12 from Richard Myers <rmm(a)cantrip.org> --- For what it's worth, I updated to the latest Fedora 6.0rc3 packages and the issue is gone. I couldn't figgure out how to easily install the wine-devel 5.22 packages from WineHQ. I guess I would need to uninstall the official Fedora 32 packages, then install the WineHQ packages (due to lots of conflicts...). The 6.0 packages came just in time! -- 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=50241 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> --- OK good, I'm not sure what fixed it, but if it works for you we can mark it resolved. -- 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=50241 Paul Gofman <pgofman(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman(a)codeweavers.com --- Comment #14 from Paul Gofman <pgofman(a)codeweavers.com> --- (In reply to Richard Myers from comment #12)
For what it's worth, I updated to the latest Fedora 6.0rc3 packages and the issue is gone. I couldn't figgure out how to easily install the wine-devel 5.22 packages from WineHQ. I guess I would need to uninstall the official Fedora 32 packages, then install the WineHQ packages (due to lots of conflicts...). The 6.0 packages came just in time!
Fedora is shipping Wine-Staging, so maybe it is a Staging regression. Could you please check if the issue is reproducible with winehq-staging 6.0rc3 or rc4 if possible? -- 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=50241 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #15 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 6.0-rc5. -- 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 (1)
-
WineHQ Bugzilla