You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/08/18 01:43:50 UTC

[GitHub] [netbeans] eirikbakke opened a new pull request #3113: [NETBEANS-2360] Auto-detect HiDPI and anti-aliasing settings on Linux

eirikbakke opened a new pull request #3113:
URL: https://github.com/apache/netbeans/pull/3113


   This commit modifies the NetBeans IDE launcher scripts to automatically handle two display-related conditions on Linux:
   1) Automatically enable the -Dawt.useSystemAAFontSettings system parameter if necessary to enable anti-aliased text. Veteran NetBeans users have known about this setting for a long time, but after a lot of research, I believe I have found the specific condition in which it is necessary, namely on the K desktop environment.
   2) Automatically detect cases where the user has enabled 2x HiDPI scaling, via the Xft.dpi Xresource, and set the GDK_SCALE environment variable accordingly so that OpenJDK will handle this accordingly. This seems to work on both KDE and Gnome. HiDPI scaling works best on FlatLAF, but seemed to work tolerably on the default GTK LAF as well. (Perhaps in the future we should consider making FlatLAF the default LAF on Linux.)
   
   See the in-code comments for more details. (There are two copies of the new code: one in the IDE launcher script, and one in the launcher script for NetBeans Platform applications.)
   
   It would be great if multiple Linux people could test NetBeans with the modified launcher scripts, on both Gnome and KDE (and any other desktop environments that exist out there).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on pull request #3113: [NETBEANS-2360] Auto-detect HiDPI and anti-aliasing settings on Linux

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on pull request #3113:
URL: https://github.com/apache/netbeans/pull/3113#issuecomment-900767124


   (Tried to add @timboudreau as a suggested reviewer here, too, but his name does not show up in the dropdown.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on pull request #3113: [NETBEANS-2360] Auto-detect HiDPI and anti-aliasing settings on Linux

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on pull request #3113:
URL: https://github.com/apache/netbeans/pull/3113#issuecomment-900767124


   (Tried to add @timboudreau as a suggested reviewer here, too, but his name does not show up in the dropdown.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on pull request #3113: [NETBEANS-2360] Auto-detect HiDPI and anti-aliasing settings on Linux

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on pull request #3113:
URL: https://github.com/apache/netbeans/pull/3113#issuecomment-1046292153


   I added another condition to the script to try to handle the DPI scaling case described by Michal Hlavac in https://issues.apache.org/jira/browse/NETBEANS-2360 , on openSUSE Tumbleweed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] eirikbakke commented on pull request #3113: [NETBEANS-2360] Auto-detect HiDPI and anti-aliasing settings on Linux

Posted by GitBox <gi...@apache.org>.
eirikbakke commented on pull request #3113:
URL: https://github.com/apache/netbeans/pull/3113#issuecomment-918373360


   I also considered using the sun.java2d.uiScale system property instead of the GDK_SCALE environment variable. But looking at the JDK source code, neither of these two support fractional scalings, e.g. 1.5x. The sun.java2d.uiScale value is always rounded to an int, even though it's initially parsed as a double, and it appears as an undocumented debugging property only. Experiments confirm that fractional scalings are not supported on Linux with either property. So keep using GDK_SCALE, and handle the 2x case only.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists