ADDITIONAL SYSTEM INFORMATION :
Linux / Ubuntu 22.04, KDE 5.24.7 X11, 5.15.0 x64 / JDK 22, OpenJFX 22
A DESCRIPTION OF THE PROBLEM :
Emoji symbols in the TextArea are either not displayed or displayed in greyscale. The number of symbols displayed depends on the emoji font used. To rule out a system misconfiguration problem, any other non-JavaFX editor (tested in Kate, SublimeText, LibreOffice and also QT/KDE text input fields) has no problems displaying emoji.
Screenshot comparing different fonts is available on SO: https://stackoverflow.com/questions/78813276/is-it-possible-to-display-emoji-inside-javafx-textarea
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the code attached.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
All emoji are shown in color.
ACTUAL -
Emoji are partially displayed (depending on the font) and in greyscale.
---------- BEGIN SOURCE ----------
public class Main extends Application {
@Override
public void start(Stage stage) {
var eta = new TextArea("""
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐คฃ ๐ฅฒ ๐ฅน ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฅฐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐คช
๐คจ ๐ง ๐ค ๐ ๐ฅธ ๐คฉ ๐ฅณ ๐โ ๐ ๐ ๐โ ๐ ๐ ๐ ๐ ๐ โน๏ธ ๐ฃ ๐ ๐ซ ๐ฉ ๐ฅบ ๐ข ๐ญ ๐ฎ ๐ค ๐
๐ก ๐คฌ ๐คฏ ๐ณ ๐ฅต ๐ฅถ ๐ฑ ๐จ ๐ฐ ๐ฅ ๐ ๐ซฃ ๐ค ๐ซก ๐ค ๐ซข ๐คญ ๐คซ ๐คฅ ๐ถ ๐ถ ๐ ๐ ๐ฌ ๐ซจ ๐ซ ๐
๐ฏ ๐ฆ ๐ง ๐ฎ ๐ฒ ๐ฅฑ ๐ด ๐คค ๐ช ๐ต ๐ต ๐ซฅ ๐ค ๐ฅด ๐คข ๐คฎ ๐คง ๐ท ๐ค ๐ค ๐ค ๐ค ๐ ๐ฟ ๐น ๐บ ๐คก
๐ฉ ๐ป ๐ ๐ฝ ๐พ ๐ค ๐ ๐บ ๐ธ ๐น ๐ป ๐ผ ๐ฝ ๐ ๐ฟ ๐พ
""");
Scene scene = new Scene(new VBox(eta), 640, 480);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always
Linux / Ubuntu 22.04, KDE 5.24.7 X11, 5.15.0 x64 / JDK 22, OpenJFX 22
A DESCRIPTION OF THE PROBLEM :
Emoji symbols in the TextArea are either not displayed or displayed in greyscale. The number of symbols displayed depends on the emoji font used. To rule out a system misconfiguration problem, any other non-JavaFX editor (tested in Kate, SublimeText, LibreOffice and also QT/KDE text input fields) has no problems displaying emoji.
Screenshot comparing different fonts is available on SO: https://stackoverflow.com/questions/78813276/is-it-possible-to-display-emoji-inside-javafx-textarea
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the code attached.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
All emoji are shown in color.
ACTUAL -
Emoji are partially displayed (depending on the font) and in greyscale.
---------- BEGIN SOURCE ----------
public class Main extends Application {
@Override
public void start(Stage stage) {
var eta = new TextArea("""
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐คฃ ๐ฅฒ ๐ฅน ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฅฐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐คช
๐คจ ๐ง ๐ค ๐ ๐ฅธ ๐คฉ ๐ฅณ ๐โ ๐ ๐ ๐โ ๐ ๐ ๐ ๐ ๐ โน๏ธ ๐ฃ ๐ ๐ซ ๐ฉ ๐ฅบ ๐ข ๐ญ ๐ฎ ๐ค ๐
๐ก ๐คฌ ๐คฏ ๐ณ ๐ฅต ๐ฅถ ๐ฑ ๐จ ๐ฐ ๐ฅ ๐ ๐ซฃ ๐ค ๐ซก ๐ค ๐ซข ๐คญ ๐คซ ๐คฅ ๐ถ ๐ถ ๐ ๐ ๐ฌ ๐ซจ ๐ซ ๐
๐ฏ ๐ฆ ๐ง ๐ฎ ๐ฒ ๐ฅฑ ๐ด ๐คค ๐ช ๐ต ๐ต ๐ซฅ ๐ค ๐ฅด ๐คข ๐คฎ ๐คง ๐ท ๐ค ๐ค ๐ค ๐ค ๐ ๐ฟ ๐น ๐บ ๐คก
๐ฉ ๐ป ๐ ๐ฝ ๐พ ๐ค ๐ ๐บ ๐ธ ๐น ๐ป ๐ผ ๐ฝ ๐ ๐ฟ ๐พ
""");
Scene scene = new Scene(new VBox(eta), 640, 480);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8343509 Certain code points fail to render properly in JavaFX
- Open