JDK-6697721 : OpenJDK: rotated text baseline different between TextLayout and drawString
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P4
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2008-05-05
  • Updated Date: 2011-03-08
  • Resolved Date: 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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b28Fixed
Description
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.

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