jdk/src/share/classes/sun/font/FontUtilities.java
changeset 3938 ef327bd847c0
parent 3929 de1a48b7aa41
child 4826 878c0606a10c
--- a/jdk/src/share/classes/sun/font/FontUtilities.java	Tue Sep 29 09:02:00 2009 -0700
+++ b/jdk/src/share/classes/sun/font/FontUtilities.java	Tue Sep 29 16:03:03 2009 -0700
@@ -31,12 +31,11 @@
 import java.io.FileInputStream;
 import java.io.InputStreamReader;
 import java.security.AccessController;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 
 import javax.swing.plaf.FontUIResource;
 
 import sun.security.action.GetPropertyAction;
+import sun.util.logging.PlatformLogger;
 
 /**
  * A collection of utility methods.
@@ -139,7 +138,7 @@
     public static final int MAX_LAYOUT_CHARCODE = 0x206F;
 
     private static boolean debugFonts = false;
-    private static Logger logger = null;
+    private static PlatformLogger logger = null;
     private static boolean logging;
 
     static {
@@ -149,17 +148,17 @@
 
         if (debugLevel != null && !debugLevel.equals("false")) {
             debugFonts = true;
-            logger = Logger.getLogger("sun.java2d");
+            logger = PlatformLogger.getLogger("sun.java2d");
             if (debugLevel.equals("warning")) {
-                logger.setLevel(Level.WARNING);
+                logger.setLevel(PlatformLogger.WARNING);
             } else if (debugLevel.equals("severe")) {
-                logger.setLevel(Level.SEVERE);
+                logger.setLevel(PlatformLogger.SEVERE);
             }
         }
 
         if (debugFonts) {
-            logger = Logger.getLogger("sun.java2d", null);
-            logging = logger.getLevel() != Level.OFF;
+            logger = PlatformLogger.getLogger("sun.java2d");
+            logging = logger.isEnabled();
         }
 
     }
@@ -298,7 +297,7 @@
         return false;
     }
 
-    public static Logger getLogger() {
+    public static PlatformLogger getLogger() {
         return logger;
     }