Skip to content

Commit f001584

Browse files
committed
FROM AOSC: Use system AA font by default
Backport of 38a1699
1 parent 4acd0f3 commit f001584

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/java.desktop/share/classes/sun/awt/SunToolkit.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,9 @@ private static boolean useSystemAAFontSettings() {
17691769
AccessController.doPrivileged(
17701770
new GetPropertyAction("awt.useSystemAAFontSettings"));
17711771
}
1772+
if (systemAAFonts == null) {
1773+
systemAAFonts = "on";
1774+
}
17721775
if (systemAAFonts != null) {
17731776
useSystemAAFontSettings = Boolean.parseBoolean(systemAAFonts);
17741777
/* If it is anything other than "true", then it may be

0 commit comments

Comments
 (0)