Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the rendering of the JavaFX 2/8 font be improved?

I am using Ubuntu 13.04 and coding an application to display some labels ( using the Label class ). I also tried to use Text class and set the smoothing type to LCD. The result is the same, the font looks blurry, its margins are scattered, and you have to set its size to a pretty big number in order to be readable ( note I have some text paragraph displayed ).

I know JavaFX2 has LCD sub-pixel rendering but still, can something be done so that the font doesn't look so ugly? ( maybe I'm missing something for 2.X or don't know of existence of something in 8.X )

Is there any way to check if LCD sub-pixel rendering is active or not?

Regards,

like image 907
aureliangtx Avatar asked Aug 22 '13 14:08

aureliangtx


1 Answers

Use

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

both or one at time.

like image 156
goaud27 Avatar answered Sep 22 '22 11:09

goaud27