The fix for text anti-aliasing in 50d36fe9 should only apply on macOS

This commit is contained in:
Ingo Kegel
2021-01-15 14:31:58 +01:00
parent 50d36fe91b
commit 364b6631ea

View File

@@ -546,7 +546,7 @@ public abstract class FlatLaf
}
private void putAATextInfo( UIDefaults defaults ) {
if ( SystemInfo.isJetBrainsJVM ) {
if ( SystemInfo.isMacOS && SystemInfo.isJetBrainsJVM ) {
// The awt.font.desktophints property suggests sub-pixel anti-aliasing
// which renders text with too much weight on macOS in the JetBrains JRE.
// Use greyscale anti-aliasing instead.