JDK-8168992 : Add floating point implementation for new BasicGraphicsUtils text related methods use floating point API
  • Type: Bug
  • Component: client-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-11-01
  • Updated: 2016-12-01
  • Resolved: 2016-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b147Fixed
Related Reports
Relates :  
Relates :  
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.