summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2008-01-09 22:06:21 +0000
committerRoman Kennke <roman@kennke.org>2008-01-09 22:06:21 +0000
commit3e91f8d6f73332071daff518c956e6b81e69e711 (patch)
tree9a98cca9106c2abfdad6e76041d215cc2c4a29de /gnu
parent7aa3cc0b7dc8206eb1910ca9ad195dcfb819b67f (diff)
downloadclasspath-3e91f8d6f73332071daff518c956e6b81e69e711.tar.gz
2006-01-09 Roman Kennke <kennke@aicas.com>
* gnu/java/awt/peer/x/XWindowPeer.java (getFontMetrics): Re-enable that for X fonts.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/java/awt/peer/x/XWindowPeer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/java/awt/peer/x/XWindowPeer.java b/gnu/java/awt/peer/x/XWindowPeer.java
index 94ef8faa0..f9184ed1c 100644
--- a/gnu/java/awt/peer/x/XWindowPeer.java
+++ b/gnu/java/awt/peer/x/XWindowPeer.java
@@ -61,6 +61,7 @@ import gnu.x11.Window;
import gnu.x11.event.Event;
import gnu.java.awt.font.OpenTypeFontPeer;
+import gnu.java.awt.peer.ClasspathFontPeer;
import gnu.java.awt.peer.swing.SwingWindowPeer;
public class XWindowPeer
@@ -290,8 +291,7 @@ public class XWindowPeer
*/
public FontMetrics getFontMetrics(Font font)
{
- // FIXME: Fix this for X fonts.
- OpenTypeFontPeer fontPeer = (OpenTypeFontPeer) font.getPeer();
+ ClasspathFontPeer fontPeer = (ClasspathFontPeer) font.getPeer();
return fontPeer.getFontMetrics(font);
}