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

Broken sub-pixel rendering and blurry fonts on Ubuntu 16.04 and Debian 9

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      FULL PRODUCT VERSION :
      java version "9.0.1"
      Java(TM) SE Runtime Environment (build 9.0.1+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 16.04 and Debian 9.1 stable

      A DESCRIPTION OF THE PROBLEM :
      Fonts are blurry on Ubuntu 16.04 and Debian 9, switching from Java 8 to Java 9 does not help, still broken rendering, see:
      https://sm.bambus.ovh/javafxcompare.png

      Please note that this broken font rendering occurs ONLY in JavaFX applications. Applications made with Swing or SWT or any other Java or non-Java GUI applications look good and have properly LCD sub-pixel hinting.

      JavaFX uses its own LCD sub-pixel rendering which is broken on Debian and Ubuntu. It makes black text look pink or green, making small size text unreadable.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Make any program in JavaFX and run on Debian or Ubuntu, it will be blurry, sub-pixel rendering will be broken and controls will be misplaced

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Good looking fonts as in any non-JavaFX application.
      ACTUAL -
      Blurry fonts, with broken sub-pixel rendering

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Only switching to other OS helps. JavaFX fonts look good on Microsoft Windows 10 and on some linuxes like Arch with KDE.

            pmangal Priyanka Mangal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: