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

Inaccurate text measurement in editor tabs on HiDPI displays on Windows

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 11.3
    • 12.1
    • platform - Other
    • Windows 10 with HiDPI scaling enabled (e.g. 150% or 200%--not necessarily fractional scalings only)

    Description

      Having fixed NETBEANS-2543, I see there is a similar issue in the NetBeans tab component, e.g. in the editor tabs. On Windows 10, with HiDPI scaling enabled on either 150% or 200% (for example), a tab title "AaaiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiA" will overshoot its allocated space. See the attached screenshot.

      Presumably this is another case where text measurement is done on a FontRenderContext that hasn't properly had the appropriate monitor's HiDPI scaling applied.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ebakke Eirik Bakke
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 40m
                  40m