6752622: java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux
authorprr
Mon, 12 Jan 2009 16:02:47 -0800
changeset 2374 a79da6a9d184
parent 2373 b12af7661027
child 2375 bb4dd76ca2c9
6752622: java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux Reviewed-by: igor, yan
jdk/src/solaris/classes/sun/awt/X11/XFontPeer.java
jdk/src/solaris/classes/sun/font/FcFontConfiguration.java
--- a/jdk/src/solaris/classes/sun/awt/X11/XFontPeer.java	Tue Jan 06 13:52:03 2009 -0800
+++ b/jdk/src/solaris/classes/sun/awt/X11/XFontPeer.java	Mon Jan 12 16:02:47 2009 -0800
@@ -27,9 +27,6 @@
 import sun.awt.PlatformFont;
 import java.awt.GraphicsEnvironment;
 
-/* FIX ME */
-import sun.awt.motif.MFontConfiguration;
-
 public class XFontPeer extends PlatformFont {
 
     /*
@@ -51,10 +48,6 @@
 
     public XFontPeer(String name, int style){
         super(name, style);
-
-        if (fontConfig != null){
-            xfsname = ((MFontConfiguration) fontConfig).getMotifFontSet(familyName, style);
-        }
     }
 
     protected char getMissingGlyphCharacter() {
--- a/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java	Tue Jan 06 13:52:03 2009 -0800
+++ b/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java	Mon Jan 12 16:02:47 2009 -0800
@@ -173,7 +173,7 @@
 
     @Override
     public FontDescriptor[] getFontDescriptors(String fontName, int style) {
-        throw new InternalError("Not implemented");
+        return new FontDescriptor[0];
     }
 
     @Override