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

Redraw problem with Graphics/Graphics2D AA drawString

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      rc1
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      Build tested : Merlin-beta3 b83
      OS tested : RedHat Linux 6.2J update and 7.1
      Window manager : Gnome and KDE


      Testing with merlin beta3 b83 on Linux, redraw problem is seen in Graphics2D test case when 2 or more lines's chracter string are re-drawn by Graphics.drawString and Graphics2d.drawString on Antialias-off and change the size.

      This probelm does not occur on Antialias-ON.
      And this problem does not occur when charcter string is written in one line.

      I confirmed that this problem occurs on Redhat Linux 6.2J Update and 7.1.


      To reproduce;
      1. Compile attached test case(Graphics2DTest.java) and launch test case.
      2. Select size from 8 point to 24 point or bigger.
      3. Select Antialising "OFF"

      You can see the redraw problem has in the second line which is written by each of methods(Graphics.drawString and Graphics2D.drawString).
      It seems that the first line's character string are written over the second line.

      This problem is NOT reproducible on Build b80 and Ladybird.

      * NOTE *
      When launch the test case, please do not change of the window size.
      This problem disappears if the window size is maximized.

      I found a similar bug #4515076 and added the bug to See also list.




        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tdv Dmitri Trembovetski (Inactive)
              Reporter:
              rsuzukisunw Rieko Suzuki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: