7034231: Default font appears twice in fallback font list
authorpeytoia
Tue, 12 Apr 2011 18:58:30 +0900
changeset 9221 4bf78a7bfaca
parent 9220 2dbb405cc3d1
child 9222 7d19f2c40915
7034231: Default font appears twice in fallback font list Reviewed-by: okutsu, prr
jdk/src/windows/classes/sun/awt/Win32FontManager.java
jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java
--- a/jdk/src/windows/classes/sun/awt/Win32FontManager.java	Tue Apr 12 16:16:41 2011 +0900
+++ b/jdk/src/windows/classes/sun/awt/Win32FontManager.java	Tue Apr 12 18:58:30 2011 +0900
@@ -100,6 +100,14 @@
             });
     }
 
+    /**
+     * Whether registerFontFile expects absolute or relative
+     * font file names.
+     */
+    protected boolean useAbsoluteFontFileNames() {
+        return false;
+    }
+
     /* Unlike the shared code version, this expects a base file name -
      * not a full path name.
      * The font configuration file has base file names and the FontConfiguration
--- a/jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java	Tue Apr 12 16:16:41 2011 +0900
+++ b/jdk/src/windows/classes/sun/awt/Win32GraphicsEnvironment.java	Tue Apr 12 18:58:30 2011 +0900
@@ -212,14 +212,6 @@
  * ----END DISPLAY CHANGE SUPPORT----
  */
 
-    /**
-     * Whether registerFontFile expects absolute or relative
-     * font file names.
-     */
-    protected boolean useAbsoluteFontFileNames() {
-        return false;
-    }
-
     protected GraphicsDevice makeScreenDevice(int screennum) {
         GraphicsDevice device = null;
         if (WindowsFlags.isD3DEnabled()) {