Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 9
-
Fix Version/s: 9
-
Component/s: client-libs
-
Labels:None
-
Resolved In Build:b147
Description
Fix JDK-8132119 added new static methods to the BasicGraphicsUtils class:
drawString(JComponent c, Graphics2D g, String string, float x, float y)
drawStringUnderlineCharAt(JComponent c, Graphics2D g, String string, int underlinedIndex, float x, float y)
getClippedString(JComponent c, FontMetrics fm, String string, int availTextWidth)
getStringWidth(JComponent c, FontMetrics fm, String string)
They should be implemented using floating point API.
drawString(JComponent c, Graphics2D g, String string, float x, float y)
drawStringUnderlineCharAt(JComponent c, Graphics2D g, String string, int underlinedIndex, float x, float y)
getClippedString(JComponent c, FontMetrics fm, String string, int availTextWidth)
getStringWidth(JComponent c, FontMetrics fm, String string)
They should be implemented using floating point API.
Attachments
Issue Links
- relates to
-
JDK-8132119 Provide public API for text related methods in SwingUtilities2
-
- Resolved
-
-
JDK-8169897 [PIT] javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails
-
- Resolved
-