Open actforjason opened 3 years ago
2023/7, 该BUG依旧存在. 在windows 11 22H2上, windows title bar font无法更改. 即便恢复系统默认字体之后, 对比还是很明显
可以参见标题栏和文件的字体渲染. 在使用了noMeiryoUI后, 我发现系统字体渲染无法恢复到默认状态(也就是更粗的状态)了
How to reproduce this issue? I use 应用 on 单项设定, Everything is OK. But, I don't default settings on 全局设定, I should set default settings in 全局设定.
To verify this issue I compare my laptop with the same model in local computer store, it turns out my memory is not reliable: By default Windows does render text in a "thinner" way compared with the "thick" way in title bar. So my last post is just an oops, sorry for that. Though I do find that under HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics, noMeiryoUI will modify some default settings: BorderWidth to -10(Original -20) CaptionWidth to -540(Original -330), PaddedBorderWidth to -10 (Original -60). Other registries are the same though. The difference is hard to notice and brings little problem.
I checked this issue and problem occurred. I think it's DPI problem. I was using standard full HD monitor. And I recently bought 4K monitor. On 4K monitor, the problem occurred. What is the resolution of your monitor?
My screen is 2560x1600, and in windows, scaling is set to 150%. Screen model is MNG007DA2-2[华星光电 CSO161B] 15.9 inch, if you need.
I understand this issue is related to DPI. I will change to window metrics when loading presets with DPI.
It seems that the default font depends on the language with which Windows was installed.
If the installation media was created using Chinese as the language, then the default font would be Microsoft YaHei UI
instead of Sogoe UI
.
For more details, refer to my comment on another post: https://github.com/Tatsu-syo/noMeiryoUI/issues/64#issuecomment-1671783977
Maybe it would be better to backup the registry's default before editing them.
I think this problem is not noMeiryoUI's problem. I think it's better for users to backup language font mapping registry settings manually. noMeiryoUI uses SystemParametersInfo API, and I think it's weird font setting changes language font mappings. The task of noMeiryoUI is to change font settings and not to change language font mappings.
It would be better for noMeiryoUI to backup the default registry for users IMO.
In fact, I was unaware that noMeiryoUI would make changes to the registry for us. This information is not documented in the README or the wiki.
Moreover, as users, we are uncertain about which registry keys the program will modify, thereby making it more difficult to perform a backup.
OK. I write user should backup registry before first use on user's readme, help file, wiki, and my web page.
I think users should backup HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER. To preserve unexpected font fallback, HKEY_LOCAL_MACHINE is needed. HKEY_CURRENT_USER is needless to say. I think backup range to preserve in future Windows might modify another registry items. How about?
I make batch file to save HKEY_CURRENT_USER\Control Panel and HKEY_LOCAL_MACHINE\SOFTWARE. I also make restore batch file to restore HKEY_CURRENT_USER\Control Panel.
I make registry backup batch file and push repository and write about related change on release issue. And how to backup registry on wiki and README.md .
Thanks. That is better now.
Sorry. I'll check default settings again.