pbwest      2004/03/17 20:50:11

  Modified:    src/java/org/apache/fop/render/awt Tag:
                        FOP_0-20-0_Alt-Design AWTFontMetrics.java
  Log:
  Updated details on getAscender bug
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.3   +17 -0     xml-fop/src/java/org/apache/fop/render/awt/AWTFontMetrics.java
  
  Index: AWTFontMetrics.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/awt/AWTFontMetrics.java,v
  retrieving revision 1.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- AWTFontMetrics.java       16 Mar 2004 12:02:37 -0000      1.2.2.2
  +++ AWTFontMetrics.java       18 Mar 2004 04:50:11 -0000      1.2.2.3
  @@ -118,6 +118,23 @@
   //        int realAscent = fmt.getAscent()
   //                         - (fmt.getDescent() + fmt.getLeading());
   //        return FONT_FACTOR * realAscent;
  +        /*
  +         * Bug 4399887 has status Closed, not a bug.  The comments on the bug
  +         * are:
  +         * The submitter is incorrectly assuming that the string he has used
  +         * is displaying characters which represent those with the maximum
  +         * ascent in the font. If (for example) the unicode character
  +         * \u00c1 which is the A-acute character used in many European
  +         * languages is placed in the bodu of the "Wrong" string it can be
  +         * seen that the JDK is exactly correct in its determination of the
  +         * ascent of the font.
  +         * If the bounds of a particular string are interesting then the
  +         * Rectangle FontMetrics.getStringBounds(..) method can be called.
  +         * The y value of the rectangle is the offset from the origin
  +         * (baseline) apparently needed by the sample test program
  +         * 
  +         * [EMAIL PROTECTED] 2001-05-15
  +         */
       }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to