On Linux, HiDPI scaling is supported via the GDK_SCALE environment variable, but it's not set automatically. I'm not yet sure whether there's a way to get different scaling levels on different monitors, though. See https://issues.apache.org/jira/browse/NETBEANS-2360 .
I'd also recommend using FlatLAF as the Look & Feel on Linux, as that one has been updated with scalable window system icons (like the Windows and MacOS LAFs). -- Eirik From: Kevin Caravaggio <[email protected]> Sent: Friday, June 26, 2020 10:31 PM To: Eirik Bakke <[email protected]> Cc: Laszlo Kishalmi <[email protected]>; [email protected] Subject: Re: Font scaling on High Res displays On a Linux desktop, HiDPI doesn't seem supported by NB 11. I configured editor settings to use very large font sizes so I can read source files though. The menus and window options are quite small though, so I just guess from memory when running things. On Fri, Jun 26, 2020, 7:16 PM Eirik Bakke <[email protected]<mailto:[email protected]>> wrote: Lots of HiDPI improvements on Windows 10 have been made in recent NetBeans and Java versions, so as others have suggested, just get the latest versions of both, and it should work fine. And see Laszlo's point here--you can still compile and run your projects with JDK 8, even though the IDE itself is running on a more recent Java version. -- Eirik From: Laszlo Kishalmi <[email protected]<mailto:[email protected]>> Sent: Friday, June 26, 2020 1:35 PM To: [email protected]<mailto:[email protected]> Subject: Re: Font scaling on High Res displays You can run NetBeans on JDK 11 13 or 14 and still be able to work on Java 8 projects., just add the Java 8 platform into Tools > Java Platforms. On 6/26/20 6:36 AM, Jeff wrote: I'm running netbeans 11.3 or 12.0 but still using Oracle Java 8. I'll try upgrading to a newer open JDK version since we're going to head that direction anyway soon. I'll try the other suggestions if that doesn't work but I'd prefer not to hard code anything if possible since I connect various external displays of varying sizes as well and hard coding any settings including forcing the font size doesn't translate automatically with other displays. On Fri, Jun 26, 2020, 6:37 AM Joseph Huber <[email protected]<mailto:[email protected]>> wrote: I have a Dell Precision 7720 laptop with the same issue. In Windows 10, you can adjust the scaling behavior for individual apps. Right-click on the shortcut for the app, select the “Compatibility” tab, and then click “Change high DPI settings” and switch between “System” and “Application”. See the screenshot below. I’m still running NB 8.2, and this is how I deal with the scaling issue when I travel and am using the laptop display instead of external monitors. See the screenshot below. Thank You! Joe Huber Standard Refrigeration LLC 2005 Reverchon Dr Arlington, TX 76017 Desk: 608-855-5808 Cell: 682-777-8374 [email protected]<mailto:[email protected]> From: Jeff <[email protected]<mailto:[email protected]>> Sent: Thursday, June 25, 2020 11:48 PM To: [email protected]<mailto:[email protected]> Subject: Font scaling on High Res displays I got a new Dell Precision 5540 laptop through work that is running a native resolution of 3840 x 2160 on a 15" screen. Windows defaults to 250% scaling to make text and icons readable at this resolution. However, Netbeans project/source views don't seem to detect/honor the scaling settings and it is literally unreadable except with a magnifying glass. The tool bar seems to honor the system scaling/font settings. I can also change the editor text size but it does nothing for the project/Files/Services view nor the output/debug windows. Enabling "Maximize use of native look and feel" didn't help. Is there another setting I'm missing or do I just need to change the resolution? Thanks!
