Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4860266

PIT: Text is not rendered at the expected location when AlphaComposite is set.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs
    • None
    • 2d
    • 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.

            Unassigned Unassigned
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: