Skip to content
Andreas edited this page Oct 11, 2016 · 4 revisions

Selected text color

Color of the selected text should be white. It is not, and changing it by CSS does not work. The problem is that setting selected text's fill on a Text node inside a TextLayout node is buggy in JavaFX 8. This is somewhat related to JavaFX issue #RT-32398.

Ugly font rendering on Linux/X11

On Ubuntu 16.04, text is rendered with a "rainbow" effect, showing the glyphs of black text with colored borders. This seems to be an issue with the JavaFX sub pixel rendering. See also http://stackoverflow.com/questions/18382969/can-the-rendering-of-the-javafx-2-8-font-be-improved. I was able to get much better results with the following settings:

    System.setProperty("prism.lcdtext", "false");
    System.setProperty("prism.text", "t2k");