JDK-6697721 : OpenJDK: rotated text baseline different between TextLayout and drawString
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-05-05
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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.
7 b28Fixed
When the font transform has a rotation and offset, Openjdk 7 doesn't
position text the same in drawString and TextLayout.
In addition this is different behaviour than the commercial JDK.

EVALUATION For fractional metrics, need to use the linearly scaled horizontal metrics. For the integer metrics case, we should not round the rotated cases.