JavaFX: completely disable scene antialiasing (including anti-aliasing with text control)

Since both System.setProperty("prism.lcdtext", "false")and System.setProperty("prism.lcdtext", "true")are not satisfactory (the first looks plump, while the latter looks colorful letters on the edges, even if the text color is black, and on my LCD it looks even more ugly than indicated here: https: //bugs.openjdk. java.net/browse/JDK-8131923 ),

I prefer to completely turn off anti-aliasing.

The setting SceneAntialiasing.DISABLEDdoes not seem to affect my buttons / lists / dropdowns / ... (I assume this is for drawing only).

How to completely disable anti-aliasing? I would like to use a font similar to the Windows 2000 font and the first version of Win XP, which work without anti-aliasing (and, in addition, save space, because they can be reduced more than they have anti-aliased fonts).

[UPDATE] Added screenshot (on request)

The correct window is created by my ScalaFX application. Pure simple standard code, no installation.

(Playing with System.setProperty("prism.lcdtext", "false")and System.setProperty("prism.text", "t2k")gives me some better, but still unsatisfactory results.)

See the enlarged “W” and its many colors that spring from the first button in the right window (JavaFX): this is unbearable for demanding users. And please compare the smoothness of monospaced texts (left: Ubuntu, right: JavaFX).

Comparison: left Ubuntu, right JavaFX

+4

All Articles