DPI scaling for QVGA displays {#147}
I've just received a Lenova Yoga 3 with QVGA display - after loading Notepad++ the toolbar shows very small. My understanding is that if applications have not used DPI scaling then it will not scale properly for higher resolutions. Now these displays are becoming popular it would be worth checking.
Icon size problems {#568}
On a 4K monitor some icons are too small:
- The X icon on a tab
- Icons of plug-ins on the toolbar that exist only as small icons are not scaled up
You should be able to make icons in general larger (ideally in steps of 1 px).
Icons in tabs don't scale up on high pixel density screens {#610}
So I just started using Notepad++ on a 4K screen (on Windows 8). Most elements work great, but the close (cross) icons in the top right of tabs don't scale up. They're so small that they're pretty much unusable on a 4K monitor.
Font size of UI elements {#562}
Notepad++ doesn't go along with an increased font size of Windows 8.1, although it scales correctly. Especially important in the search-and-replace dialog.
Adjust the individual segments to the (scaled) string size on HiDPI systems {#539}
When using a monitor with a higher DPI than the usual 96 DPI and Windows 8.1 scaling set to >100%, Notepad++ typically scales rather well.
The status bar segments for the line ending type and the encoding are too small, however, and the labels "Dos/Windows" and "UTF8 w/o BOM" are cut off, see the attached screenshot. Other status bar labels may be affected as well, I have only seen it for these two, though.
Also the caption bars of dockable dialogs and their UI elements are not scaled up.
Status bar indeed does not scale well. I have many medium-sized source files >10 KiB and on my DPI, nothing after "lines:" is displayed. So I have to use workarounds to learn number of lines instead of just having it displayed.
This is how I've had it for years... it really is time to fix this.
Most of the time in practice, I can't see "Sel" number either, so I need to manually calculate selection length from columns.
Tab labels are really tiny (200% scaling set in windows):
@nsgundy:
Tab labels are really tiny (200% scaling set in windows):
I can agree the font is too small when having the system setting increased, but here, it's not _that_ small! That's very strange! Here, it's just as small as, for instance, the text in the find-and-replace dialog.
Yeah, same problems for me on 4k Dell XPS15. Not unusable, but I need to put my good glasses on ;)
first thing I noticed when launching notepad++ on 4k dell xps 13 was that the toolbar icons just arent as crisp as the other ui elements. :(
I can confirm this behavior on a Surface Pro 4 with Windows 10 (4K screen and auto-DPI scaling which is default configuration). Extending to 1080p external monitors and moving the Notepad++ to said monitors worsens the behavior.
++1 The font is fine but things like the text in the tab labels and the + icons in the left margin to collapse and expand code sections are minuscule and unreadable on my 4k Lenovo Y50.
Same thing here - n++ 6.9.1 has way too small UI text on 4k screen. I don't want to change windows scaling, because on win 7 all monitors will have same scaling, so that would make other monitors unusable. Best would be if n++ itself could scale the Ui text.
Try it with this setting (Windows 10, translated from German, find your way): "Settings" > "System" > "Extended Display Settings" > "Extended Size Settings for Text and Other Elements". Then change the size for every list item. Check if the items remain changed after applying. This changes just the text, although the taskbar text doesn't want to change.
The text cursor is also too thin. It's a single device pixel whereas (at 200%) it should be 2 device pixels like in every other application. I can barely see it between the text. Should I open a new issue for this?
The text cursor is also too thin. It's a single device pixel whereas (at 200%) it should be 2 device pixels like in every other application. I can barely see it between the text. Should I open a new issue for this?
Mine is wider than 1 device pixel. I think there's an option for this in Notepad++.
Great, thanks! I just copied my config over from the PC where 1 is a good value. Now I can even select 3 pixels, which would be 1.5 on a regular monitor. :-) Everybody should have a 200% scaled monitor!
I have laptop with high-resolution display and second monitor with 1920x1200 and I have such kind of bug.
Same issue as aterzi above. I have a 4k laptop display and 4 external monitors. The 4k display is set to 200% scaling. All the other monitors are 1920x1200, 2 are set portrait, and all are set to 100% scaling. The tab font shows big regardless of which monitor the application is displaying on.
@JoelRSimpson:
I have a 4k laptop display and 4 external monitors.
Then you can go take a walk with your mouse cursor.
@aterzi 's issue happens to me when I connect my laptop with a 4k display to a regular monitor via a docking station and not use the laptop screen.
It might have to do with _different_ DPI scaling factors on different monitors.
any tips on how to deal with the issue that @aterzi describes?
I'm experiencing same problem with Dell XPS 15 with an external monitor. Perfectly usable, but would be great to have this fixed
Any Solution to the above Scenario? Facing the same issue.
Any news on the tiny labels listed on the tabs for N++?
You can easily fix this issue by creating a manifest file and putting it in the Program files/Notepad++. Here's an article on it https://tricklio.com/fix-notepad-plus-plus-scaling-in-high-dpi-displays/
What about Per-Monitor DPI scaling?
I recently made some tests and it seems promising. If there is interest I may spend some time doing it.
Is using newer API's like EnableNonClientDpiScaling allowed? It would be a requirement for it to actually work properly.
Tab labels look good when I run the program locally:
But tab label font size is too small when I run on a remote machine via remote desktop connection:
I'm on a Surface Book with 175% scaling.
Hi tomhunter-gh,
You can easily fix this. Just go to Notepadd++ > Settings > Performances > Now mark on Reduce and finally click Close to save it. Hope it helps :)
If you have scaling problem then check my earlier comments. There's a fix for it.
Hi @hmtamim, thanks for the tip but that doesn't quite fix the tab labels on remote desktop connection I'm afraid.
Reduce on:
Reduce off:
Still looks a bit different to when I run the program on my local machine.
The tab font problem is at least partially due to the use of GetStockObject API in TabBarPlus::init.
Microsoft considers it obsolete.
The recommended approach is (to use Menu font for example):
NONCLIENTMETRICS ncmat;
ncmat.cbSize = sizeof(ncmat);
::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncmat, 0);
_hFont = ::CreateFontIndirect(&ncmat.lfMenuFont);
It's been a year and a half since this issue was originally reported. Last comment suggests Notepad++ is using a deprecated API and a possible solution. Any plan to resolve this? Any workaround? I'm not sure under what conditions this issue does show up. I also use an external monitor but this happens in both monitors. Sometime it appears sometime it doesn't. Restarting Notepad++ doesn't help, neither does using the 'Reduce' option as explained above.
Can you verify if the Windows Updates of January 2017 fix the bug of @aterzi: big font size in Notepad++ tabs with high-dpi laptops with non-high-dpi external monitors? Something seems to have fixed the problem for me and another user for Notepad++ and another app of mine suffering the same problem
Update: the Windows Updates of January 2017 don't fix the problem, it has happened again. The cause is that Notepad++ uses _hFont = (HFONT)::GetStockObject(DEFAULT_GUI_FONT); in TabBar.cpp file to get the font. FWIW, Windows.Forms (.NET, which I use in my app suffering the problem too) does the same and in this scenario that font is returned huge (Microsoft Sans Serif, size 21, 15.75 points in my case). Microsoft doesn't recommend to use DEFAULT_GUI_FONT.
I have a 2-monitor setup (laptop and external monitor) at work where, unfortunately, I can't update Windows due to Group Policies. However, I just got an external monitor for home so I'll try to update Windows and use Notepad++ with a similar setup for a while to see if the issue got resolved by the Windows January updates or not. I will post my findings here. Thanks.
My laptop and docked monitor have different DPI scaling. I need to logout / login to Windows every time after screen change because otherwise Notepad++ is blurry. Very annoying!!
I can also reproduce the tab font size problem. Size of the font is huge and no setting fixes it.
I have the latest Windows 10 from Windows Update.
@M-Jup the blurry thing is a dpi scaling issue that affects to many Windows application when you have a monitor configuration with at least one being high DPI. It's not the issue reported here.
So I tested with Windows 10 Anniversary update and latest updates and with 2 different monitor configurations, both with multiple monitors. The issue is still around.
Should I then create a separate issue about the blurry thing? At least Firefox, Chrome and most of the bundled Win10 apps don't have this problem so there should be a way to fix it?
@M-Jup:
Might have to do with per-monitor DPI-awareness not being present.
Created #2871 for PM support in Notepad++
Also having this issue on a clean install of Windows 10 and NP++ 64bit. Tab font size is too large. Unchecking "Reduce" for the tab bar settings doesn't do anything but make the icon in the tab bigger. Anyone have any actual solutions to this, or is this something that needs to be patched in the program itself?
I've just begun having this issue as well. Unchecking Reduce changes the font size slighty, but does not correct it.
Just switched a 4K laptop as well.
The text in tabs is quite small - doesn't seem to scale.
The main icons - New, Open ... seem right, but the icons of Plugins are very small either and don't seem to scale either.
The tab icons for document and close seem a bit large and are clipping the tab, but otherwise it seems nice.
Scaling is at 260%
Notepad++ shows as DPI Awareness "System Aware" in Process Explorer. That's better than not being able to handle high DPI settings, but when using more than one screen with different scaling factors, everything is messed up again, when it's running on the non-primary screen. Could you please move on to "Per-Monitor Aware"?
I believe this issue has been implemented since long time ago.
Update your Notepad++ to the latest version (v7.6.6).
If the issue persists, please create a new issue for it.
Thank you.
Not quite, but almost.
Some toolbar icons are still tiny at 200% scaling. And the menu spacing is too narrow. Looks like one long menu item.
NPP is not per-monitor DPI-aware which results in a totally blurry appearance on a secondary monitor with a different scaling. Just tested it on a Surface Pro (200%) with attached monitor (100%).
This is NPP 7.5.9 32-bit on Windows 10.1803.
@ygoe you didnt check with v7.6.6
I've used the update check and it said I have the current version. Is that one broken, too?
Not broken: there is no automated update path from 7.5.x to 7.6.x due to the plugins architecture change. Try again in 7.6.6 because that's what you were asked to do, but your display issue will be the same.
Same issue with NPP 7.6.6. It only disabled my Customize Toolbar plugin which I had to install again from the plugin list. This seems to add the tiny icons. Now there are even 4 more icons at the end. I didn't order those.
I can also confirm this is not fixed in 7.6.6:
If you have lots of plugins then stay away from 7.6 until the plugins issues are fixed/stabilized.
I just made the mistake of just updating manually and lost all the plugins I had installed.
The dlls were still in the folder but nothing was loading.
Most of them I found in the new plugin manager since I could guess the plugin names from the file names but I still can't get "TakeNotes" to work. And I used that a lot.
There's some others missing but they are not as bad for me as this one.
So only update if you have a lot of time re-installing all your plugins - and make a list beforehand.
Worst Notepadd++ "update" ever. (Actually by reading 7.6.0 was worse)
Sorry, I forgot to mention that i am using 7.6.6, since I am always using latest versions.
Oh and as for toolbar icons - it seems that many plugin developers don't include hi-res toolbar buttons and that's why they are tiny.
Maybe the base code could just stretch toolbar buttons that are too small?
Why should any plugin contain high resolution icons when the core doesn't even have them? Scaling would be expected here. And by the host, not the plugin.
Not broken: there is no automated update path from 7.5.x to 7.6.x due to the plugins architecture change.
Yes, broken. On my main PC I have 7.6.4 installed and yet the update check says there is no update available. So to be more precise: There is not auto-update path to 7.6 from anywhere. Does this mean it's a pre-release version? Wouldn't it need to be declared as such in the version id?
(Still) not broken. There is a time delay after a release in this feature before it is a true update path. I presume so that if critical bugs are found not a large amount of users will update to a critically bad version. So it is only a "pre-release" if such bugs are found. :) Recently there was an effort made to go to a "release candidate" scheme. Time will tell how well that works out. But the RC thing isn't tied into update notifications at all (I just mention it as an aside).
@ygoe
Well - I guess the built-in buttons are not high res (some do look quite blocky), but at least they are bigger than most plugin buttons.
Here is the toolbar I have. The big ones are mostly from the core and the smaller ones to the right plugins buttons. So other than the spell check everything is tiny.
The font size in the TAB bar TABS is controlled by the following WidgetStyle lines in the stylers.xml.
If you decide to edit your stylers.xml file to see if it will affect your Notepad++ tab bars, be sure to make a backup copy in case you mess up the xml and need to return to the original code file.
Just be sure that there is a space between the last parameter and /> otherwise you may find that something else broke and Notepad++ is not listening to your instructions.
Just to be clear; I did not find the following modifications to have an affect on the text size of the TAB BAR.
The 4 lines to edit are as follows:
<WidgetStyle name="Active tab focused indicator" styleID="0" fgColor="FAAA3C" />
<WidgetStyle name="Active tab unfocused indicator" styleID="0" fgColor="FFCAB0" />
<WidgetStyle name="Active tab text" styleID="0" fgColor="000000" />
<WidgetStyle name="Inactive tabs" styleID="0" fgColor="000000" bgColor="C0C0C0" />
As you can see, there is no fontsize = "" parameter and that needs to be added as follows.
To make the change, add fontsize= to each of the lines as follows.
<WidgetStyle name="Active tab focused indicator" styleID="0" fgColor="FAAA3C" fontSize="14" />
<WidgetStyle name="Active tab unfocused indicator" styleID="0" fgColor="FFCAB0" fontSize="14" />
<WidgetStyle name="Active tab text" styleID="0" fgColor="000000" fontSize="14" />
<WidgetStyle name="Inactive tabs" styleID="0" fgColor="000000" bgColor="C0C0C0" fontSize="14" />
Just another disclaimer;
I found that making the changes in this post had no affect on the size of the texts displayed in the Notepad++ TAB Bar.
Quite honestly, I would like the text size of the entire GUI to be adjustable as the higher the resolution of a monitor, the smaller every thing becomes and Operating systems, including open source OSes such as Linux, do an extremely poor job of dealing with that problem. The end result is that as the quality of one's eyesight degrades, the more difficult it is for one to see what's on the monitor and to easily utilize one's computer. What's worse, the harder it is for one to see what's on the monitor, the more one's eyes strain, and the more one's eyes strain, the more one's eyesight degrades.
Can you imagine the pain one goes through that suffers migraines when they are under stress such as squinting at the computer monitor? This is not just a usability issue, it is also a health issue and needs to be addressed.
Just chiming in to say I'm experiencing this issue on my multi-monitor setup on NP++ 7.7.1. Most of the interface is blurry when I pull the window over to my laptop's high res 1440p screen.
Including screenshot for example:
Most helpful comment
I have laptop with high-resolution display and second monitor with 1920x1200 and I have such kind of bug.