Details
-
Bug
-
Resolution: Fixed
-
P4
-
7
Description
FULL PRODUCT VERSION :
java version "1.7.0_05-icedtea"
OpenJDK Runtime Environment (fedora-2.2.1.fc17.9-x86_64)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The XRender pipeline currently does not set the source offset properly when rendering text.
This results in the wrong texturing when rendering text with TexturePaint or GradientPaints.
I intend to contribute a patch to OpenJDK, to fix this issue.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
xrender pipeline should take source offset for text rendering into account
ACTUAL -
xrender pipeline does not take source offset for text rendering into account
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
g.setPaint(new GradientPaint(new Point2D.Float(0, 0), new Color(255, 255, 0), new Point2D.Float(100, 100), new Color(0, 255, 255)));
g.fillOval(25, 25, 50, 50);
g.setFont(new Font("Dialog", Font.PLAIN, 100));
g.drawString("Hello!", 120, 50);
---------- END SOURCE ----------
java version "1.7.0_05-icedtea"
OpenJDK Runtime Environment (fedora-2.2.1.fc17.9-x86_64)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The XRender pipeline currently does not set the source offset properly when rendering text.
This results in the wrong texturing when rendering text with TexturePaint or GradientPaints.
I intend to contribute a patch to OpenJDK, to fix this issue.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
xrender pipeline should take source offset for text rendering into account
ACTUAL -
xrender pipeline does not take source offset for text rendering into account
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
g.setPaint(new GradientPaint(new Point2D.Float(0, 0), new Color(255, 255, 0), new Point2D.Float(100, 100), new Color(0, 255, 255)));
g.fillOval(25, 25, 50, 50);
g.setFont(new Font("Dialog", Font.PLAIN, 100));
g.drawString("Hello!", 120, 50);
---------- END SOURCE ----------
Attachments
Issue Links
- relates to
-
JDK-8024767 [TEST] need test to cover JDK-7189452
- Resolved