Merge pull request #7196 from HenrikJannsen/Avoid-color-artefacts-at-antialias

Set -fx-font-smoothing-type to grey.
This commit is contained in:
Alejandro García 2024-07-19 00:17:42 +00:00 committed by GitHub
commit bc31f206c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -111,8 +111,6 @@ public class CommonSetup {
} }
protected static void setSystemProperties() { protected static void setSystemProperties() {
if (Utilities.isLinux())
System.setProperty("prism.lcdtext", "false");
} }
protected static void setupSigIntHandlers(GracefulShutDownHandler gracefulShutDownHandler) { protected static void setupSigIntHandlers(GracefulShutDownHandler gracefulShutDownHandler) {

View File

@ -26,6 +26,11 @@
-fx-font-family: "IBM Plex Sans"; -fx-font-family: "IBM Plex Sans";
} }
/* Avoid color artefacts at antialias */
.text {
-fx-font-smoothing-type: gray;
}
/******************************************************************************************************************** /********************************************************************************************************************
* * * *
* General * * General *