When entering a specific pattern of emoji characters in a syntax-highlighted CodeArea, the characters following the emoji characters cannot be displayed.
Code to reproduce the problem:
String text = "* 😂 hello";
codeArea.replaceText(text);
StyleSpansBuilder<Collection<String>> spansBuilder = new StyleSpansBuilder<>();
spansBuilder.add(List.of("md-list"), 2);
spansBuilder.add(Collections.emptyList(), 9);
codeArea.setStyleSpans(0, spansBuilder.create());
In the above example, the hello after the 😂 is not displayed at all, even when selected with cursor.
But, what Interesting is, If the text is * 😂😂 hello with 2 emoji characters, the display works well.