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

Font rendering shows artifacts around glyphs

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
      11
    • CPU:
      x86_64
    • OS:
      linux_ubuntu

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Xubuntu 18.10 - 64 Bit
      JDK 11.0.1 from http://jdk.java.net/11/

      A DESCRIPTION OF THE PROBLEM :
      The initial problem was observed with a development version of netbeans. Netbeans was run with JDK 11 and in labels with bold text black distortions in the font rendering were observed.

      The problem was reproducible with the logical "Dialog" font and also with the font "DejaVu Sans Light". It is unclear if the problem only occurs with bold fonts, but was only observed there.

      To make this reproducible a minimal sample was created that just renders a "big" sample label.
      That is a maven project with a single java class. To reproduce please:

      1. Download the tar mentioned above
      2. Extract it, change into the "SimpleSample" folder
      3. Run "mvn package"
      4. Run "java -jar target/SimpleSample-1.0-SNAPSHOT.jar"

      I was able to reproduce this on Xubuntu 18.10 with a clean user profile. The results for JDK 8, JDK 10 and JDK 11 can be found (attachments).
      As visible in the screenshots, the rendering is slightly different in each version, but the artifacts are only present in JDK 11. The artifacts seem to be concentrated at the edges of the bounding box of the glyph.

      REGRESSION : Last worked in version 10.0.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Rendering without artifacts as in JDK 8 + JDK 10
      ACTUAL -
      Rendering artifacts around the edge of the bounding box of the glyphs

      ---------- BEGIN SOURCE ----------
      Download link is provided in description
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

        1. Results_with_antialias.jpg
          29 kB
          Pardeep Sharma
        2. Results_without_antialias.jpg
          30 kB
          Pardeep Sharma
        3. SimpleSample.tar.gz
          3 kB
          Pardeep Sharma

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: