Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2360

HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. kubunt.jpg
          229 kB
          Eirik Bakke
        2. image-2021-09-12-21-01-33-807.png
          52 kB
          Michal Hlavac
        3. image-2021-09-12-21-05-06-852.png
          114 kB
          Michal Hlavac
        4. CheckHiDpi.java
          2 kB
          Michal Hlavac

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ebakke Eirik Bakke
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m