-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0
-
None
-
generic
-
generic
I am rendering an AttributedString using AttributedCharIterator and TextLayout. When I set the composite to one the following values
AlphaComposite.SrcAtop
AlphaComposite.DstOut
AlphaComposite.SrcIn
AlphaComposite.SrcOut
AlphaComposite.Clear
AlphaComposite.Xor
the text is getting rendered in the wrong location, somewhere behind the title bar of the frame. The rendering is perfect when I don't set the composite value.
This is reproducible only in the PIT build and not in previous builds such as JDK1.5.0-b05, JDK1.4.2-b22.
This is reproducible on Windows as well as Solaris.
outout of java -version:
java version "2d-merlin64-06-May-03.tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 2d-merlin64-06-May-03.tiger)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b05, mixed mode)
How to reproduce:
I have attached a sample code. Run the sample code on the specified build and choose the AlphaComposite type from the drop-down. Verify the rendering. You can see the above scenario for the above mentioned composite types.
AlphaComposite.SrcAtop
AlphaComposite.DstOut
AlphaComposite.SrcIn
AlphaComposite.SrcOut
AlphaComposite.Clear
AlphaComposite.Xor
the text is getting rendered in the wrong location, somewhere behind the title bar of the frame. The rendering is perfect when I don't set the composite value.
This is reproducible only in the PIT build and not in previous builds such as JDK1.5.0-b05, JDK1.4.2-b22.
This is reproducible on Windows as well as Solaris.
outout of java -version:
java version "2d-merlin64-06-May-03.tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 2d-merlin64-06-May-03.tiger)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b05, mixed mode)
How to reproduce:
I have attached a sample code. Run the sample code on the specified build and choose the AlphaComposite type from the drop-down. Verify the rendering. You can see the above scenario for the above mentioned composite types.
- duplicates
-
JDK-4859770 PIT: Text is not rendered at the expected location when Antialiasing is on
- Closed