basil opened a new pull request, #8589:
URL: https://github.com/apache/netbeans/pull/8589

   The current logic to auto-detect HiDPI settings on Linux from #3113 only 
handles the 2x case. This PR expands it to handle fractional scaling, as 
described in [this 
thread](https://lists.apache.org/thread/y5f52bnqx9qvvn35h9lk0mztkv2n35fj).
   
   Taking 
https://github.com/apache/netbeans/issues/7780#issuecomment-2657192464 into 
consideration, the launcher does not touch the scaling settings if one or both 
of the `GDK_SCALE` and `J2D_UISCALE` environment variables is set.
   
   This PR was tested with both Java 17 and 21 (Eclipse Temurin) on Fedora 42 
with fractional scaling enabled in KDE Plasma. Before this PR, no scaling was 
applied; after this PR, fractional scaling is applied and the following is 
logged:
   
   > Detected 158 DPI in `Xft.dpi` setting; using explicit setting for Java UI 
scaling (`-J-Dsun.java2d.uiScale=2`) and FlatLaf UI scaling 
(`-J-Dflatlaf.uiScale=0.822917`)
   
   ### PR approval and merge checklist:
   
   1. [ ] Was this PR [correctly 
labeled](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=240884239#PRsandYouAreviewerGuide-PRtriggeredCIJobs(conditionalCIpipeline)),
 did the right tests run? When did they run?
   2. [x] Is this PR 
[squashed](https://cwiki.apache.org/confluence/display/NETBEANS/git%3A+squash+and+merge)?
   3. [x] Are author name / email address correct? Are 
[co-authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line)
 correctly listed? Do the commit messages need updates?
   3. [ ] Does the PR title and description still fit after the Nth iteration? 
Is the description sufficient to appear in the release notes?
   
   If this PR targets the delivery branch: [don't 
merge](https://cwiki.apache.org/confluence/display/NETBEANS/Pull+requests+for+delivery).
 ([full wiki 
article](https://cwiki.apache.org/confluence/display/NETBEANS/PRs+and+You+-+A+reviewer+Guide))


-- 
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-unsubscr...@netbeans.apache.org

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


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

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

Reply via email to