http://bugs.winehq.org/show_bug.cgi?id=58592
Bug ID: 58592 Summary: Font substitution partially broken - regression Product: Wine Version: 10.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: zdenek.koprivik@post.cz Distribution: ---
While trying to replace "Tahoma" with "Noto Sans Regular" (the default Plasma desktop font), I've encountered an issue, where the font replacement does not work in some cases. Since I'm migrating from a very old system with Wine 1.6.2, I know that the font replacement used to work for the exact same binary and the same UI elements.
I've set the following registry keys: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "Tahoma"="Noto Sans Regular" "Segoe UI"="Noto Sans Regular" "MS Shell Dlg"="Noto Sans Regular" "MS Shell Dlg 2"="Noto Sans Regular"
The issue can be reproduced by opening the file dialog in the built-in registry editor.
Running the built-in registry editor I've got the main font changed to "Noto Sans Regular" as expected, but in the file open dialog for import, there is still "Tahoma". When I'm browsing for directories, the font changes to "Noto Sans Regular", but when an item is selected, the font changes back to "Tahoma".
Here is a short video showing the issue: https://imgur.com/a/l0BhsB8
This is only one example of the non-working substitution. The "Tahoma" is also rendered on the buttons and almost everywhere around in the dialog. I'm using the substitution mostly for MikroTik network equipment management apps (WinBox and The Dude) to improve the readability. It is working fine when running the exact same binaries on the old PC with Wine 1.6.2, but I can't get it to work with the newest Wine.
The system is KDE neon User, Plasma 6.4.4, Wine 10.12 from the WineHQ PPA.
http://bugs.winehq.org/show_bug.cgi?id=58592
--- Comment #1 from Rafał Mużyło galtgendo@o2.pl --- As you may have noticed, plenty has changed since 1.6.2.
I'm not sure if it helps, but try using HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements key instead (and keep 32bit vs 64bit in mind - sometimes you need to explicitly put in in the Wow6432Node subtree).
http://bugs.winehq.org/show_bug.cgi?id=58592
--- Comment #2 from Zdeněk Kopřivík zdenek.koprivik@post.cz --- Thanks for the help, but as you can see in the attached video, the issue is not that the registry key is not read. The font is being replaced back and forth upon selecting of an item, which is definitely not on purpose. That is why I'm reporting this as a bug in the first place.
Also, I've got the "HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements" set as well just in case.
http://bugs.winehq.org/show_bug.cgi?id=58592
Zdeněk Kopřivík zdenek.koprivik@post.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zdenek.koprivik@post.cz
http://bugs.winehq.org/show_bug.cgi?id=58592
--- Comment #3 from Zdeněk Kopřivík zdenek.koprivik@post.cz --- I've found out that changing "Noto Sans Regular" to "Noto Sans" make both the fonts in the file open dialog render correctly.
Also, it seems that what I originally thought was the original Tahoma font (without the replacement applied) actually wasn't exactly the same as without the replacement. The font has changed a bit with or without the Font Substitutes enabled.
So, there seem to be at least 2 font rendering paths used in the file dialog, each using different algorithm for selecting font and other parameters. I did another test and changed the font size in Window Metrics like this:
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics] "BorderWidth"="1" "CaptionFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\ 00,00,00,01,00,00,00,00,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,73,\ 00,20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "CaptionHeight"="30" "CaptionWidth"="22" "IconFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\ 00,00,01,00,00,00,22,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,73,00,\ 20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "IconSpacing"="80" "IconTitleWrap"="1" "IconVerticalSpacing"="80" "MenuFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\ 00,00,01,00,00,00,00,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,73,00,\ 20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "MenuHeight"="30" "MenuWidth"="22" "MessageFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\ 00,00,00,01,00,00,00,00,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,73,\ 00,20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "PaddedBorderWidth"="0" "ScrollHeight"="16" "ScrollWidth"="16" "Shell Icon Size"="32" "SmCaptionFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\ 00,00,00,00,01,00,00,00,22,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,\ 73,00,20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "SmCaptionHeight"="20" "SmCaptionWidth"="18" "StatusFont"=hex:f3,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\ 00,00,00,01,00,00,00,00,4e,00,6f,00,74,00,6f,00,20,00,53,00,61,00,6e,00,73,\ 00,20,00,52,00,65,00,67,00,75,00,6c,00,61,00,72,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
This should change all the default fonts from 8px to 10px. It works for most of the basic apps like notepad or regedit, but in the file dialog only some of the fonts are changed. This time the issue is even better visible, see the new video here: https://imgur.com/a/ShAbrDV
When the folder is changed, the initial file list is displayed with the correct 10px font, but when selecting any item it gets redrawn with 8px font. The rest of the dialog use 8px font, but should be 10px.
http://bugs.winehq.org/show_bug.cgi?id=58592
Zdeněk Kopřivík zdenek.koprivik@post.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Font substitution partially |Font rendering partially |broken - regression |does not respect settings
http://bugs.winehq.org/show_bug.cgi?id=58592
--- Comment #4 from Zdeněk Kopřivík zdenek.koprivik@post.cz --- I've changed the name of the bug to better reflect the issue. I've also removed the regression label, because I've tested that the same was happening on the older Wine as well.
http://bugs.winehq.org/show_bug.cgi?id=58592
Zdeněk Kopřivík zdenek.koprivik@post.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|10.12 |10.13
http://bugs.winehq.org/show_bug.cgi?id=58592
Zdeněk Kopřivík zdenek.koprivik@post.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Font rendering partially |Default file picker broken |does not respect settings |by changed font