Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Toolbar icon too small on Hi-DPI monitor #175

Open
nobk opened this issue Oct 15, 2016 · 15 comments
Open

Toolbar icon too small on Hi-DPI monitor #175

nobk opened this issue Oct 15, 2016 · 15 comments

Comments

@nobk
Copy link

nobk commented Oct 15, 2016

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

@knmnm
Copy link

knmnm commented Oct 30, 2016

default

@XhmikosR
Copy link
Owner

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

@blackcrack
Copy link

blackcrack commented Nov 1, 2016

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

@Zcehtro
Copy link

Zcehtro commented Dec 11, 2016

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?

@w0ndersp00n
Copy link

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

@jcompagner
Copy link

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

@zufuliu
Copy link
Contributor

zufuliu commented May 9, 2018

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

@jcompagner
Copy link

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
Copy link

image

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

@zufuliu
Copy link
Contributor

zufuliu commented May 11, 2018

@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
Copy link
Contributor

zufuliu commented May 12, 2018

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

@zufuliu
Copy link
Contributor

zufuliu commented Jul 29, 2018

@jcompagner Notepad2 now support use fractional font size (see zufuliu/notepad4@b7595f0).

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.

@jcompagner
Copy link

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

@zufuliu
Copy link
Contributor

zufuliu commented Jul 30, 2018

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

@zufuliu
Copy link
Contributor

zufuliu commented Jul 30, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants