-
Bug
-
Resolution: Fixed
-
P3
-
11
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8206202 | 12 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
JDK-8206678 | 11.0.1 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
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.
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.
- backported by
-
JDK-8206202 Ellipsis in "Classical" label in SwingSet2 demo with Windows L&F at Hidpi
- Resolved
-
JDK-8206678 Ellipsis in "Classical" label in SwingSet2 demo with Windows L&F at Hidpi
- Resolved
- relates to
-
JDK-8178025 HiDPI with non-integer scale factor - SPANs in HTML are rendered overlapping each other
- Resolved
- links to