Tatsu-syo / noMeiryoUI

No!! MeiryoUI is Windows system font setting tool on Windows 8.1/10/11.
https://www.tatsu-syo.info/MySoft/WinCust/index.html
MIT License
4.71k stars 163 forks source link

In the win11 22h2 version, white border lines will appear in notepad in dark mode after font change #64

Open myg321 opened 1 year ago

myg321 commented 1 year ago

After my careful observation, there will also be white lines in the notepad window in the light mode, but the dark mode is more obvious. I sincerely hope that developer can fix this bug, because this issue still exists when I restore the system default font.

屏幕截图_20230113_153251
digiant commented 1 year ago

me too

YGaotian commented 1 year ago

Is there any solution to this problem? I've met this ugly border for many months, It's really annoying and till now I can't get away from this.

myg321 commented 1 year ago

Is there any solution to this problem? I've met this ugly border for many months, It's really annoying and till now I can't get away from this.

I re-imported a default registry. Then after restarting the computer, it returned to normal. However, the font was also restored to the default. I don't want to change the font until the developer fixes this problem 😢 For the content of the registry I imported, you can refer to this link (the second reply from Pondsi): https://answers.microsoft.com/zh-hans/windows/forum/all/%E7%AA%97%E5%8F%A3%E5%8F%B3%E4%B8%8A%E8%A7%92/84b76bb1-388e-41ed-bf05-8c8cbc9b8df2 I hope it will help you.

digiant commented 1 year ago

Is there any solution to this problem? I've met this ugly border for many months, It's really annoying and till now I can't get away from this.

hi, I fixed this issue. First, import the reg to restore system font setting, and log off. Second, goto Setting->Accessibility->Text Size->150% or 140%, everything is ok. Restore Font.zip

YGaotian commented 1 year ago

Is there any solution to this problem? I've met this ugly border for many months, It's really annoying and till now I can't get away from this.

hi, I fixed this issue. First, import the reg to restore system font setting, and log off. Second, goto Setting->Accessibility->Text Size->150% or 140%, everything is ok. Restore Font.zip

谢谢!!非常感谢,真的好了,新年快乐!!!

YGaotian commented 1 year ago

Is there any solution to this problem? I've met this ugly border for many months, It's really annoying and till now I can't get away from this.

I re-imported a default registry. Then after restarting the computer, it returned to normal. However, the font was also restored to the default. I don't want to change the font until the developer fixes this problem 😢 For the content of the registry I imported, you can refer to this link (the second reply from Pondsi): https://answers.microsoft.com/zh-hans/windows/forum/all/%E7%AA%97%E5%8F%A3%E5%8F%B3%E4%B8%8A%E8%A7%92/84b76bb1-388e-41ed-bf05-8c8cbc9b8df2 I hope it will help you.

谢谢!我终于解决这问题了,差点就要重置系统了,新年快乐。

kako774 commented 11 months ago

The problem can be solved by modifying the PaddedBorderWidth key in HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics to -60

Tatsu-syo commented 11 months ago

Thanks. I have another problem about WindowMetrics. I will check code about WindowMetrics.

mon-jai commented 11 months ago

@digiant's registry backup was dumped from a Chinese Windows installation, with Microsoft YaHei UI as the default font.

However, it doesn't work well on my English installation, which has Segoe UI as the default font instead.

image

If you have an English Windows installation like mine, use the following registry instead (dumped from a fresh user account):

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"BorderWidth"="-15"
"CaptionFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"CaptionHeight"="-330"
"CaptionWidth"="-330"
"IconFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"IconTitleWrap"="1"
"MenuFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuHeight"="-285"
"MenuWidth"="-285"
"MessageFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"ScrollHeight"="-255"
"ScrollWidth"="-255"
"Shell Icon Size"="32"
"SmCaptionFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"SmCaptionHeight"="-330"
"SmCaptionWidth"="-330"
"StatusFont"=hex:f4,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,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,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,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"PaddedBorderWidth"="-60"
"AppliedDPI"=dword:00000060
"IconSpacing"="-1125"
"IconVerticalSpacing"="-1125"
"MinAnimate"="1"
Tatsu-syo commented 11 months ago

I changed iPaddedBorderWidth of NONCLIENTMETRICS structure is not set to 0 on Windows 11. And solved problem about notepad for Windows 11 running with dark mode.