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

PIT: Text is not rendered at the expected location when Antialiasing is on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • client-libs
    • 2d
    • tiger
    • generic, sparc
    • generic, solaris_9
    • Verified

      I am trying to render an AttributedString using AttributedCharacterIterator and a TextLayout. When i set the the rendering hint to KEY_ANTIALIASING, VALUE_ANTIALIAS_ON the text represented by the AttributedString is rendered on the top left corner of the frame, behind the Title bar and only a little portion of the text is seen.
      This is not the case when the Antialiasing is off where the text gets rendered in the expected location. This is reproducible in windows as well as Solaris and the details of the build is given below:

      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)

      I tested this with WinXP and Solaris 8.
      This is not reproducible in JDK1.5.0-b05 and JDK1.4.2-b22.


      How to reproduce:
      I have attached a sample code which would reproduce this. Run the sample code and you would see the text being rendered behind the Title bar. Comment out the antialias code and re run the application. You would notice that the text being rendered properly at the expected location.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: