Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201552

Ellipsis in "Classical" label in SwingSet2 demo with Windows L&F at Hidpi

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      11
    • Resolved In Build:
      b21

      Backports

        Description

        Configure Windows to run at 120 DPI.
        Then run SwingSet2 from current JDK 11 and Switch immediately to the Windows L&F.
        The first label "Classical" is truncated and render as "Classic..."
        This is symptomatic of when Swing mismatches the text measurement
        with the space allocated for the rendering.

        Interestingly this only just became a problem - apparently due to usage of
        freetype instead of t2k, since if you use -Dsun.java2d.font.scaler=t2k the problem goes away.

        It also goes away if you view this tab first with a different L&F.

        I think this need to be looked at as a Swing hidpi bug rather than a font one.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  prr Philip Race
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: