http://bugs.winehq.org/show_bug.cgi?id=30869
Bug #: 30869 Summary: Word 2010 UI uses wrong font size - leads to huge UI elements Product: Wine Version: 1.5.5 Platform: x86-64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: bunglehead@gmail.com Classification: Unclassified
Whole Word UI including ribbon, window title and status bar is displayed with huge font size, ribbon height is about 2 times larger than it should be.
Regression test shows that's a recently introduced problem from:
cca41207c161250d709ae3f8e0b002ac5c794de9 is the first bad commit commit cca41207c161250d709ae3f8e0b002ac5c794de9 Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Jun 4 12:05:25 2012 +0900
gdi32: Fix parameters of some GDI stock fonts.
:040000 040000 78dfe59e027790bf6e171283d317c8214629312d c1aee58caa05e216e80a12b4ecf15f799c715696 M dlls
http://bugs.winehq.org/show_bug.cgi?id=30869
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |cca41207c161250d709ae3f8e0b | |002ac5c794de9
http://bugs.winehq.org/show_bug.cgi?id=30869
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry@baikal.ru
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 03:30:52 CDT --- Does actually reverting that patch help? If yes, does changing -11 back to 8 in the DefaultGuiFont entries help?
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 04:08:34 CDT --- (In reply to comment #1)
Does actually reverting that patch help?
Yes.
If yes, does changing -11 back to 8 in the DefaultGuiFont entries help?
It does help, I changed it for ANSI_CHARSET only and it works as it used to now.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 04:26:50 CDT --- (In reply to comment #2)
If yes, does changing -11 back to 8 in the DefaultGuiFont entries help?
It does help, I changed it for ANSI_CHARSET only and it works as it used to now.
Please attach a +font trace.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 04:39:24 CDT --- Created attachment 40443 --> http://bugs.winehq.org/attachment.cgi?id=40443 +font trace starting Word 2010
Log attached.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #5 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 04:54:40 CDT --- Does native gdiplus by any chance help? Also screenshots before and after the change would be nice.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 05:08:54 CDT --- Created attachment 40444 --> http://bugs.winehq.org/attachment.cgi?id=40444 with commit
Does native gdiplus by any chance help?
No, it makes no difference.
Also screenshots before and after the change would be nice.
Okay, attached.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 05:09:32 CDT --- Created attachment 40445 --> http://bugs.winehq.org/attachment.cgi?id=40445 without commit
Working properly.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 05:17:20 CDT --- Do you observe large nonclient areas in other applications like notepad? Please attach +font log with the patch reverted.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 05:38:54 CDT --- Created attachment 40446 --> http://bugs.winehq.org/attachment.cgi?id=40446 +font without commit
Do you observe large nonclient areas in other applications like notepad?
No, I see no difference in notepad look.
Please attach +font log with the patch reverted.
Attached.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #10 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 06:53:22 CDT --- Could you please generate +relay,+font logs with the patch and without?
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 09:19:44 CDT --- Sure, I uploaded +relay,+font,+tid here:
http://ge.tt/4qXE2rI/v/0?c - without commit http://ge.tt/9vcw2rI/v/0?c - with commit
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #12 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 09:53:50 CDT --- This commit doesn't fix implementation on negative heights, is that right? At least todo is about that it seems. Could that be a reason?
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #13 from Dmitry Timoshkov dmitry@baikal.ru 2012-06-08 10:16:35 CDT --- Created attachment 40448 --> http://bugs.winehq.org/attachment.cgi?id=40448 gdi32: Do not normalize height of the default GUI font
Does the attached patch help?
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #14 from Nikolay Sivov bunglehead@gmail.com 2012-06-08 11:11:05 CDT --- Yes, it fixes that, no side effects so far.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #15 from Sagawa sagawa.aki+winebugs@gmail.com 2012-06-09 06:59:36 CDT --- Created attachment 40455 --> http://bugs.winehq.org/attachment.cgi?id=40455 gdi32: Fix the size of default gui font.
(In reply to comment #13)
Created attachment 40448 [details] gdi32: Do not normalize height of the default GUI font
Does the attached patch help?
I wonder why you remove existed normalize code for the default gui font. With above patch, returned gui font object has incorrect value if the LogPixels is 120.
By the way, I noticed this bug in wine's regedit. The patch which I sent to wine-patches haven't been archived yet. So I attach the patch here.
http://bugs.winehq.org/show_bug.cgi?id=30869
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
http://bugs.winehq.org/show_bug.cgi?id=30869
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |spetreolle@yahoo.fr
http://bugs.winehq.org/show_bug.cgi?id=30869
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e65b19cad34ed0c440e0d4ccb63 | |0a3cd497b1c23 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com 2012-06-12 14:49:24 CDT --- This is fixed with e65b19cad34ed0c440e0d4ccb630a3cd497b1c23. Not sure what to do with patch from comment 15, that fixes it in other way.
http://bugs.winehq.org/show_bug.cgi?id=30869
Berillions berillions@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |berillions@gmail.com
--- Comment #17 from Berillions berillions@gmail.com 2012-06-17 14:04:26 CDT --- I tried wine-git today because i have a bug in regedit (font size is big in the menu) and like Sagawa said in comment #15, her patch resolv this problem.
Actually, her patch is present in wine-git but after to build it, i have always the problem in regedit.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #18 from Nikolay Sivov bunglehead@gmail.com 2012-06-17 14:16:39 CDT --- (In reply to comment #17)
I tried wine-git today because i have a bug in regedit (font size is big in the menu) and like Sagawa said in comment #15, her patch resolv this problem.
I don't know what are you talking about, this was fixed with another patch, see Fixed sha1 field.
Actually, her patch is present in wine-git but after to build it, i have always the problem in regedit.
It's not included in git.
P.S. Akihiro is a male name I believe, but I'm not Japanese speaker so I'm not 100% sure.
http://bugs.winehq.org/show_bug.cgi?id=30869
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lviggiani@gmail.com
--- Comment #19 from Alexandre Julliard julliard@winehq.org 2012-06-20 02:43:28 CDT --- *** Bug 30959 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=30869
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |box0@gmx.us
--- Comment #20 from Alexandre Julliard julliard@winehq.org 2012-06-20 03:33:01 CDT --- *** Bug 30960 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=30869
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #21 from Alexandre Julliard julliard@winehq.org 2012-06-22 13:30:41 CDT --- Closing bugs fixed in 1.5.7.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #22 from Luca Viggiani lviggiani@gmail.com 2012-06-25 02:01:14 CDT --- Hi, today I have received the upgrade to version 1.5.7 but the bug is still there. :(
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #23 from Nikolay Sivov bunglehead@gmail.com 2012-06-25 02:08:06 CDT --- (In reply to comment #22)
Hi, today I have received the upgrade to version 1.5.7 but the bug is still there. :(
You're probably didn't update it properly, for me it's fixed and you don't even need to reinstall - this patch affects runtime behaviour only and doesn't break installed product.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #24 from Luca Viggiani lviggiani@gmail.com 2012-06-25 02:50:35 CDT --- sudo apt-get update && sudo apr-get upgrade
that's what I did. I don't see how this could be improper... BTW, I created a clean wine prefix and reinstalled office 2010 and now the bug is not showing anymore.
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #25 from Luca Viggiani lviggiani@gmail.com 2012-06-25 02:52:20 CDT --- sudo apt-get update && sudo apt-get upgrade
http://bugs.winehq.org/show_bug.cgi?id=30869
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felix.sprenger@freenet.de
--- Comment #26 from Nikolay Sivov bunglehead@gmail.com 2012-06-25 03:49:44 CDT --- *** Bug 31005 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=30869
--- Comment #27 from JaimeH jaime@jaimehernandez.com 2012-06-25 16:12:42 CDT --- Created attachment 40717 --> http://bugs.winehq.org/attachment.cgi?id=40717 REG_BINARY leftover registry values that cause the wrong font size.
http://bugs.winehq.org/show_bug.cgi?id=30869
JaimeH jaime@jaimehernandez.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaime@jaimehernandez.com
--- Comment #28 from JaimeH jaime@jaimehernandez.com 2012-06-25 16:14:47 CDT --- (In reply to comment #23)
(In reply to comment #22)
Hi, today I have received the upgrade to version 1.5.7 but the bug is still there. :(
You're probably didn't update it properly, for me it's fixed and you don't even need to reinstall - this patch affects runtime behaviour only and doesn't break installed product.
I updated and had the same issue. I solved it by creating a new wineprefix, comparing differences, and narrowed it down to HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics in user.reg. I had some REG_BINARY values that were not in the freshly created prefix. I replaced my old .wine directory and deleted those values and the problem went away. I am assuming the old code created those values and the fix does not remove them.
Sorry about the separate attachment and comment.
https://bugs.winehq.org/show_bug.cgi?id=30869
clayton claytonpena@asia.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |claytonpena@asia.com
--- Comment #29 from clayton claytonpena@asia.com --- hi, i am new to ubuntu(14.04LTS) and i have the same problem. can someone tell me step by step how to fix it?