You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (Jira)" <ji...@apache.org> on 2022/04/04 01:03:00 UTC
[jira] [Commented] (NETBEANS-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
[ https://issues.apache.org/jira/browse/NETBEANS-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17516604#comment-17516604 ]
Eirik Bakke commented on NETBEANS-2360:
---------------------------------------
Hi, Javier!
As you may have noticed, Java only supports either 1x or 2x HiDPI scaling on Linux. So the script I provided only applies the 2x scaling when the desktop's scaling is exactly 2x (192 dots per inch). In your case it seems you have configured a 162/96=1.6875x scaling factor? Could this be right?
Could you try setting your desktop's HiDPI scaling to exactly 200%, and then see if the script picks up on that?
(I suppose I could change the script to scale NetBeans to 2x if the desktop's scaling level is more than 1.5x, or perhaps some higher threshold. But I figured it was better to let the user increase their font size instead in these cases.)
-- Eirik
> HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
> ---------------------------------------------------------------------------
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
> Issue Type: Bug
> Components: platform - Launchers&CLI
> Affects Versions: 11.0, 12.2
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
> Reporter: Eirik Bakke
> Priority: Major
> Labels: HiDPI, Linux, pull-request-available
> Attachments: CheckHiDpi.java, image-2021-09-12-21-01-33-807.png, image-2021-09-12-21-05-06-852.png, kubunt.jpg
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take into account the system's default HiDPI scaling. This was reported in a Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . Note that Window decorations seem to be the correct size.
> Setting the GDK_SCALE environment variable seems to fix the problem, if I understand the originally reporter correctly. This could probably be done easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix the problem in multi-monitor setups. We should investigate what could be done to make scaling work properly in multi-monitor setups involving one HiDPI screen and one non-HiDPI screen.
> Before merging a patch to the launcher script, it should be tested on a couple of different Linux environments, using both HiDPI and non-HiDPI screens. Note that the UNIX launcher script is also used on MacOS.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists