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

Batik text anti-aliasing is partially broken on Java 1.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.8
    • None
    • GVT Text
    • None
    • 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. all text tags with text_rendering=optimizeLegibility.PNG
          53 kB
          Robert Gurol
        2. correctLabelsJava6.png
          92 kB
          Nicolas Peters
        3. Java7WithLabelRotationWorkaround.png
          95 kB
          Nicolas Peters
        4. original.svg
          57 kB
          Nicolas Peters
        5. screenshot.png
          1 kB
          Joël Bourquard
        6. testcase.svg
          0.4 kB
          Joël Bourquard
        7. wrongLabelsJava7.png
          88 kB
          Nicolas Peters

        Activity

          People

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

            Dates

              Created:
              Updated: