From 4ce74c2e80ea8b890a2dd6e0f179108a4cc8fe89 Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Fri, 1 Jul 2022 15:57:41 +0200 Subject: [client] Fix antialiasing failure We need to set antialising before and after initiazing flatlaf. If you want to delete doubled code, check first if font looks good with different themes. --- dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dozentenmodul/src') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index 36ea083b..9ef3f7b9 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -163,6 +163,11 @@ public class App { } } + // Setup swing style + // need to set Antialiasing two times. Before AND after FlatLaf init ~.~ + System.setProperty("awt.useSystemAAFontSettings", "on"); + System.setProperty("swing.aatext", "true"); + // Install FlatLaf look and feel FlatLightLaf.installLafInfo(); FlatDarkLaf.installLafInfo(); @@ -193,6 +198,7 @@ public class App { } // Setup swing style + // need to set Antialiasing two times. Before AND after FlatLaf init ~.~ System.setProperty("awt.useSystemAAFontSettings", "on"); System.setProperty("swing.aatext", "true"); -- cgit v1.2.3-55-g7522