Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1027

Batik text anti-aliasing is partially broken on Java 1.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: GVT Text
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      Text that is rendered on top of a semi-transparent element will be rendered incorrectly if the JRE is Java 1.7. On Java 1.6 this issue doesn't occur.

      I have attached a very simple testcase that demonstrates this issue. On Java 1.6 the two "Hello World" texts are identical. On Java 1.7 the anti-aliasing for the upper text is broken.

      I was also able to reproduce the issue on batik-svn-12-10-01.

        Attachments

        1. wrongLabelsJava7.png
          88 kB
          Nicolas Peters
        2. testcase.svg
          0.4 kB
          Joël Bourquard
        3. screenshot.png
          1 kB
          Joël Bourquard
        4. original.svg
          57 kB
          Nicolas Peters
        5. Java7WithLabelRotationWorkaround.png
          95 kB
          Nicolas Peters
        6. correctLabelsJava6.png
          92 kB
          Nicolas Peters
        7. all text tags with text_rendering=optimizeLegibility.PNG
          53 kB
          Robert Gurol

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              joel.bourquard@gmail.com Joël Bourquard
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: