I implemented two unimplemented functions.

2006-05-18  Lillian Angel  <[EMAIL PROTECTED]>

        * java/awt/font/GlyphMetrics.java
        (getLSB): Implemented.
        (getRSB): Implemented.

Index: java/awt/font/GlyphMetrics.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/font/GlyphMetrics.java,v
retrieving revision 1.3
diff -u -r1.3 GlyphMetrics.java
--- java/awt/font/GlyphMetrics.java	22 Mar 2006 19:15:24 -0000	1.3
+++ java/awt/font/GlyphMetrics.java	18 May 2006 19:28:53 -0000
@@ -38,8 +38,6 @@
 
 package java.awt.font;
 
-import gnu.classpath.NotImplementedException;
-
 import java.awt.geom.Rectangle2D;
 
 /**
@@ -94,16 +92,18 @@
     return bounds;
   }
 
-  public float getLSB ()
-    throws NotImplementedException
+  public float getLSB()
   {
-    throw new Error ("not implemented");
+    if (horizontal)
+      return (float) bounds.getX();
+    return (float) bounds.getY();
   }
 
-  public float getRSB ()
-   throws NotImplementedException
+  public float getRSB()
   {
-    throw new Error ("not implemented");
+    if (horizontal)
+      return (float) (advanceX - (bounds.getX() + bounds.getWidth()));
+    return (float) (advanceY - (bounds.getY() + bounds.getHeight()));
   }
 
   public int getType ()

Reply via email to