notepad2-mod
notepad2-mod copied to clipboard
Toolbar icon too small on Hi-DPI monitor
Almost can not pick and click on 5K resolution screen.
@knmnm: please stop posting random builds without the patches.
well, you could say, "this Project it is only under Maintainmode" and close this issue.. but a scaling of the icons would be nice ;) from 16px over 32px up to 48px because the U-HD monitors be coming and there be really high screen resolution possibility. the next monitor it is also a UHD-TV and therewith have i a really big workplace screen
best regards blacky
Hi, this seems old, but I found something that can help you. I can guarantee that it works.
http://www.danantonielli.com/adobe-app-scaling-on-high-dpi-displays-fix/
Btw, does anybody have a fork more actively developed with this issue resolved?
In the new Windows 10 Creators Update you can enable Enhanced GDI Scaling. The Toolbar buttons will be scaled very nicely.
https://blogs.windows.com/buildingapps/2017/04/04/high-dpi-scaling-improvements-desktop-applications-windows-10-creators-update/#1sM1t61oKQUL88qf.97
i think this one is a bit more dpi aware: https://github.com/zufuliu/notepad2
problem wit that one is that the text itself is to big... Somehow on my laptop the default font is way bigger then it normally should be (Consolas 10) and if i make it 8 it is still to big for my taste
@jcompagner Which version? the latest v4.2.25r1110?
So the left is the one from XhmikosR and the right from zufuliu both in the default (at least i think thats default) font setting:
so the one from XhmikosR is better with that default font, and even decreasing the font to 8 is still to large for me for the other
a compare between them, what size 8 is in the editor and what the fonts preview of windows says that that should be
@jcompagner If you can build my fork of Notepad2 (follow the wiki article https://github.com/zufuliu/notepad2/wiki/Build-Notepad2), you can tune the line 2557 in Styles.c
// Size
if (Style_StrGetSize(lpszStyle, &iValue)) {
iValue = MulDiv(iValue, g_uCurrentDPI, USER_DEFAULT_SCREEN_DPI);
SendMessage(hwnd, SCI_STYLESETSIZE, iStyle, (LPARAM)iValue);
}
which will set font size to (size * dpi) / 96
.
@jcompagner As of 8e35062703d6c43cffe9122bdcc2915d90d804c3, zoom level settings is saved in Notepad2.ini, you could try to zoom out the text.
@jcompagner Notepad2 now support use fractional font size (see https://github.com/zufuliu/notepad2/commit/b7595f0abb83d73a1bd25a7c952568e27da40c94).
It can be set var Customize Schemes (not the font selection dialog through View -> Default Font...). You can change Default Text -> Default Style to change global default font.
Please give a try, thanks.
Ok i did setup the Windows 10 Dev vm of microsoft so i could build it my self. But what can i change now so that it should work? the sample what i see in the font dialog is really not what i get in the editor:
Typed directly in the Customize Schemes edit box.
Please also try to switch different rendering technologies (Menu -> Settings -> Rendering Technology), and seeing if it help. In my Win10, rendering with Direct2D is somewhat smaller than the default GDI.