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

Apple Color Emoji turns gray after JavaFX version 18

    XMLWordPrintable

Details

    • b07
    • generic
    • os_x

    Description

      ADDITIONAL SYSTEM INFORMATION :
      OS: MacOS 12.4
      JDK: openjdk version "11.0.13" 2021-10-19 LTS

      A DESCRIPTION OF THE PROBLEM :
      Apple Color Emoji do not has color after JavaFX 18, JavaFX 17.0.* and before works well.

      I did some tests, the following commit trigger this problem:
      8236689: macOS 10.15 Catalina: LCD text renders badly
      The emojis become colorful again when revert this commit.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile the source code and run, a window having a emojis text label will display.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The emojis show with color.
      ACTUAL -
      Emojis is gray, with no color.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.scene.text.Font;
      import javafx.stage.Stage;

      public class Test extends Application {

          @Override
          public void start(Stage stage) {
              Label label = new Label("🐢πŸ”₯🎎");
              label.setFont(new Font(30));
              Scene scene = new Scene(label);
              stage.setWidth(400);
              stage.setHeight(100);
              stage.setScene(scene);
              stage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }

      }
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: