[ 
https://issues.apache.org/jira/browse/NETBEANS-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495209#comment-17495209
 ] 

Eirik Bakke commented on NETBEANS-2360:
---------------------------------------

Thanks, Michal! I have updated the NetBeans launcher script at 
https://github.com/apache/netbeans/pull/3113 to try to detect the condition you 
described. Could you try to see if it works?

Specifically, could you:
1) Try to launch NetBeans with the new version of the launcher script, and see 
if the "Detected 192 DPI on all screens in xdpyinfo" message is shown and 
NetBeans is now scaled appropriately?
2) Temporarily turn off 2x HiDPI scaling on your window system, and relaunch 
NetBeans, confirming that the message above no longer appears and NetBeans no 
longer scales 2x?
3) Turn 2x HIDPI scaling back on on your window system, and relaunch NetBeans, 
and seeing that the message once again appears and NetBeans is scaled 
appropriately?

Thanks for your help!

-- 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: [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

Reply via email to