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@winehq.org Reporter: rmm@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