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

Zooming SVG does not handle fonts correctly

    Details

    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_151-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_151-ea-b06)
      Java HotSpot(TM) Client VM (build 25.151-b06, mixed mode)

      java version "1.8.0_152-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_152-ea-b05)
      Java HotSpot(TM) Client VM (build 25.152-b05, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      Look at how the text lines up in the test program. For many values of the "zoom", everything works correctly. However, for others, things do not work correctly.

      A zoom level of "1.0" works great, "1.05" is very different. "1.1" works as expected again.

      We did this type of thing with Batik all the time and the font rendering was precise at all zoom levels.

      FYI: Chrome shows this document perfectly at all zoom levels as well. Firefox is great until things get too small, Internet Explorer is terrible, but is at least consistent at all zoom levels.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the test program. Look at how the text lines up in the graphic. Now change the zoom level to 1.05 and watch the text move relative to the lines. Then go back to "1.0" or "1.1" and watch things line up again.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Text stays properly aligned at all zoom levels.
      ACTUAL -
      Text does not stay properly aligned.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      The test program is just showing a SVG graphic and called setZoom on the webView. I will try to submit the test program with the svg graphic through another channel since that would be a lot of information to include on this form.

      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              dkumar Dipak Kumar (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: