< prev index next >
src/java.desktop/share/classes/sun/font/FontUtilities.java
Print this page
rev 60042 : 8248802: Add log helper methods to FontUtilities.java
@@ -322,10 +322,27 @@
public static boolean debugFonts() {
return debugFonts;
}
+ public static void logWarning(String s) {
+ if (isLogging()) {
+ getLogger().warning(s);
+ }
+ }
+
+ public static void logInfo(String s) {
+ if (isLogging()) {
+ getLogger().info(s);
+ }
+ }
+
+ public static void logSevere(String s) {
+ if (isLogging()) {
+ getLogger().severe(s);
+ }
+ }
// The following methods are used by Swing.
/* Revise the implementation to in fact mean "font is a composite font.
* This ensures that Swing components will always benefit from the
< prev index next >