/[classpath]/classpath/java/awt/Font.java
ViewVC logotype

Diff of /classpath/java/awt/Font.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mkoch, Thu May 22 07:14:25 2003 UTC revision 1.10 by brawer, Thu Jun 19 00:41:06 2003 UTC
# Line 39  exception statement from your version. * Line 39  exception statement from your version. *
39  package java.awt;  package java.awt;
40    
41  import java.awt.peer.FontPeer;  import java.awt.peer.FontPeer;
42    import java.awt.font.FontRenderContext;
43    import java.awt.font.LineMetrics;
44  import java.io.Serializable;  import java.io.Serializable;
45  import java.util.StringTokenizer;  import java.util.StringTokenizer;
46    
# Line 484  toString() Line 486  toString()
486           ",size=" + size + ")");           ",size=" + size + ")");
487  }  }
488    
489    
490      /**
491       * Determines the line metrics for a run of text.
492       *
493       * @param str the text run to be measured.
494       *
495       * @param frc the font rendering parameters that are used for the
496       *        measurement. The exact placement and size of text slightly
497       *        depends on device-specific characteristics, for instance
498       *        the device resolution or anti-aliasing.  For this reason,
499       *        the returned measurement will only be accurate if the
500       *        passed <code>FontRenderContext</code> correctly reflects
501       *        the relevant parameters. Hence, <code>frc</code> should be
502       *        obtained from the same <code>Graphics2D</code> that will
503       *        be used for drawing, and any rendering hints should be set
504       *        to the desired values before obtaining <code>frc</code>.
505       *
506       * @see java.awt.Graphics2D#getFontRenderContext()
507       */
508      public LineMetrics getLineMetrics(String str, FontRenderContext frc)
509      {
510        throw new UnsupportedOperationException(); // FIXME
511      }
512  } // class Font  } // class Font
513    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26