[
https://issues.apache.org/jira/browse/NETBEANS-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17147031#comment-17147031
]
Eirik Bakke commented on NETBEANS-2360:
---------------------------------------
Looking at the OpenJDK HiDPI implementation on Linux (
https://github.com/openjdk/jdk/blob/6bab0f539fba8fb441697846347597b4a0ade428/src/java.desktop/unix/native/common/awt/systemscale/systemScale.c
), there seems to be an attempt to get per-monitor scaling factors on GNOME
via the "com.ubuntu.user-interface"/"scale-factor" setting. I don't have an
Ubuntu machine to test on, though.
> HiDPI scaling not applied automatically on Linux
> ------------------------------------------------
>
> Key: NETBEANS-2360
> URL: https://issues.apache.org/jira/browse/NETBEANS-2360
> Project: NetBeans
> Issue Type: Improvement
> Components: platform - Launchers&CLI
> Affects Versions: 11.0
> Environment: Kubuntu 18.03
> Oracle JDK 11.0.2
> Reporter: Eirik Bakke
> Priority: Major
> Labels: HiDPI, Linux
> Attachments: kubunt.jpg
>
>
> 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.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists