Skip to content

Commit

Permalink
Add information about using Java 9 for antialiasing when using Java 8…
Browse files Browse the repository at this point in the history
… or earlier.
  • Loading branch information
weisJ committed Sep 22, 2020
1 parent b067fc0 commit b0938b9
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,17 @@ private void setupRenderingHints(final UIDefaults defaults) {
aaHint = RenderingHints.VALUE_TEXT_ANTIALIAS_ON;
}
// The fallback value is an educated guess so issue a warning for the user.
LOGGER.warning("System property 'awt.useSystemAAFontSettings' is not set. Using '" + aaHint
String message = "System property 'awt.useSystemAAFontSettings' is not set. Using '" + aaHint
+ "'\nIt's recommended to manually set the property for the JVM on your platform for optimal "
+ "text antialiasing. Refer to the "
+ "[documentation](https://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#aaFonts)"
+ "for more information on the possible values.");
+ "for more information on the possible values.";
if (!SystemInfo.isJava9OrGreater) {
message += "\n";
message += "If you are using a Java version of 8 or earlier try switching to at least Java 9 "
+ "for improved scaling and font rendering support.";
}
LOGGER.warning(message);
}
}

Expand Down

0 comments on commit b0938b9

Please sign in to comment.