changeset 1032:91bc016862c4

6752622: java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux Reviewed-by: igor, yan
author prr
date Mon, 12 Jan 2009 16:02:47 -0800
parents eaeaacda1c56
children 80fb12052ae4
files src/solaris/classes/sun/awt/X11/XFontPeer.java src/solaris/classes/sun/font/FcFontConfiguration.java
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XFontPeer.java	Tue Jan 06 13:52:03 2009 -0800
+++ b/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/src/solaris/classes/sun/font/FcFontConfiguration.java	Tue Jan 06 13:52:03 2009 -0800
+++ b/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