notepad2-mod icon indicating copy to clipboard operation
notepad2-mod copied to clipboard

Toolbar icon too small on Hi-DPI monitor

Open nobk opened this issue 8 years ago • 15 comments

Almost can not pick and click on 5K resolution screen.

nobk avatar Oct 15 '16 21:10 nobk

default

knmnm avatar Oct 30 '16 10:10 knmnm

@knmnm: please stop posting random builds without the patches.

XhmikosR avatar Oct 30 '16 12:10 XhmikosR

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

blackcrack avatar Nov 01 '16 10:11 blackcrack

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?

Zcehtro avatar Dec 11 '16 00:12 Zcehtro

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

snip_surfacepro

w0ndersp00n avatar Apr 08 '17 21:04 w0ndersp00n

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 avatar May 09 '18 10:05 jcompagner

@jcompagner Which version? the latest v4.2.25r1110?

zufuliu avatar May 09 '18 10:05 zufuliu

image

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:

image

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

jcompagner avatar May 09 '18 11:05 jcompagner

image

a compare between them, what size 8 is in the editor and what the fonts preview of windows says that that should be

jcompagner avatar May 09 '18 11:05 jcompagner

@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.

zufuliu avatar May 11 '18 03:05 zufuliu

@jcompagner As of 8e35062703d6c43cffe9122bdcc2915d90d804c3, zoom level settings is saved in Notepad2.ini, you could try to zoom out the text.

zufuliu avatar May 12 '18 13:05 zufuliu

@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.

zufuliu avatar Jul 29 '18 04:07 zufuliu

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:

image

jcompagner avatar Jul 30 '18 07:07 jcompagner

Typed directly in the Customize Schemes edit box. customize-schemes

zufuliu avatar Jul 30 '18 10:07 zufuliu

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.

zufuliu avatar Jul 30 '18 12:07 zufuliu