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

[macos] Horrible font rendering to offscreen bitmaps

XMLWordPrintable

    • 2d
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      java 1.8.0_251 Oracle Corporation
      OSX Catalina

      A DESCRIPTION OF THE PROBLEM :
      Fonts rendered to the Graphics objects create by image.getGraphics() are rendered horribly, barely readable and clearly unacceptable. The exact same drawing algorithm, rendering to the graphics object provided to Paint methods, look fine.

      This applies only to OSX, not to Windows platforms. I don't know when this damage occurred, but it wasn't always so.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Best seen on my web app, Boardspace.net. I have a switch embedded in the code that switches from internal double buffering to direct drawing, so the difference is easily producible.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Nice fonts!
      https://drive.google.com/open?id=136DyxEnOnyopDuYlASFx5aFoohuTRHnD

      ACTUAL -
      Terrible fonts!
      https://drive.google.com/open?id=1N7GyP7WOJKlruqQqPwnyIel2CMYvDV2k

      and for reference, here is the same rendering as done on windows
      https://drive.google.com/open?id=1gh5dXiJrKdZZyHKcA5LLDjEGjKVEfyZn

      FREQUENCY : always

            alitvinov Anton Litvinov (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: