src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java

Print this page

        

@@ -645,10 +645,11 @@
         }
         return super.getFontMetrics(font);
     }
 
     @Override
+    @SuppressWarnings("deprecation")
     public FontPeer getFontPeer(String name, int style) {
         FontPeer retval = null;
         String lcName = name.toLowerCase();
         if (null != cacheFontPeer) {
             retval = cacheFontPeer.get(lcName + style);