提交 d668be83 编写于 作者: P prr

6752622: java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux

Reviewed-by: igor, yan
上级 79edbadb
...@@ -27,9 +27,6 @@ package sun.awt.X11; ...@@ -27,9 +27,6 @@ package sun.awt.X11;
import sun.awt.PlatformFont; import sun.awt.PlatformFont;
import java.awt.GraphicsEnvironment; import java.awt.GraphicsEnvironment;
/* FIX ME */
import sun.awt.motif.MFontConfiguration;
public class XFontPeer extends PlatformFont { public class XFontPeer extends PlatformFont {
/* /*
...@@ -51,10 +48,6 @@ public class XFontPeer extends PlatformFont { ...@@ -51,10 +48,6 @@ public class XFontPeer extends PlatformFont {
public XFontPeer(String name, int style){ public XFontPeer(String name, int style){
super(name, style); super(name, style);
if (fontConfig != null){
xfsname = ((MFontConfiguration) fontConfig).getMotifFontSet(familyName, style);
}
} }
protected char getMissingGlyphCharacter() { protected char getMissingGlyphCharacter() {
......
...@@ -173,7 +173,7 @@ public class FcFontConfiguration extends FontConfiguration { ...@@ -173,7 +173,7 @@ public class FcFontConfiguration extends FontConfiguration {
@Override @Override
public FontDescriptor[] getFontDescriptors(String fontName, int style) { public FontDescriptor[] getFontDescriptors(String fontName, int style) {
throw new InternalError("Not implemented"); return new FontDescriptor[0];
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册