File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/net/sourceforge/pmd/util/fxdesigner Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 66
77import javax .swing .JOptionPane ;
88
9+ import org .apache .commons .lang3 .SystemUtils ;
10+
911import com .beust .jcommander .JCommander ;
1012import com .beust .jcommander .ParameterException ;
13+
1114import javafx .application .Application ;
1215
1316/**
@@ -68,9 +71,18 @@ public static void main(String[] args) {
6871
6972 readParameters (args );
7073
74+ setSystemProperties ();
7175 launchGui (args );
7276 }
7377
78+ private static void setSystemProperties () {
79+ if (SystemUtils .IS_OS_LINUX ) {
80+ // On Linux, JavaFX renders text poorly by default. These settings help to aleviate the problems.
81+ System .setProperty ("prism.text" , "t2k" );
82+ System .setProperty ("prism.lcdtext" , "true" );
83+ }
84+ }
85+
7486 private static String getHelpText (JCommander jCommander ) {
7587
7688 StringBuilder sb = new StringBuilder ();
You can’t perform that action at this time.
0 commit comments