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

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

XMLWordPrintable

    • 11
    • b21

        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.

              serb Sergey Bylokhov
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: