You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2006/04/28 15:45:28 UTC
svn commit: r397900 - in
/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font:
AWTGVTGlyphVector.java MultiGlyphVector.java SVGGVTGlyphVector.java
Author: cam
Date: Fri Apr 28 06:45:26 2006
New Revision: 397900
URL: http://svn.apache.org/viewcvs?rev=397900&view=rev
Log:
1. Forgotten getGlyphCellBounds implementation for MultiGlyphVector.
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java
xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/MultiGlyphVector.java
xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java?rev=397900&r1=397899&r2=397900&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java Fri Apr 28 06:45:26 2006
@@ -528,7 +528,7 @@
* shape.
*/
public Rectangle2D getGlyphCellBounds(int glyphIndex) {
- return (Rectangle2D) getGlyphLogicalBounds(glyphIndex).getBounds2D();
+ return getGlyphLogicalBounds(glyphIndex).getBounds2D();
}
/**
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/MultiGlyphVector.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/MultiGlyphVector.java?rev=397900&r1=397899&r2=397900&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/MultiGlyphVector.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/MultiGlyphVector.java Fri Apr 28 06:45:26 2006
@@ -133,6 +133,15 @@
}
/**
+ * Returns the bounding box of the specified glyph, considering only the
+ * glyph's metrics (ascent, descent, advance) rather than the actual glyph
+ * shape.
+ */
+ public Rectangle2D getGlyphCellBounds(int glyphIndex) {
+ return getGlyphLogicalBounds(glyphIndex).getBounds2D();
+ }
+
+ /**
* Returns the position of the specified glyph within this GlyphVector.
*/
public Point2D getGlyphPosition(int glyphIndex) {
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java?rev=397900&r1=397899&r2=397900&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/font/SVGGVTGlyphVector.java Fri Apr 28 06:45:26 2006
@@ -399,7 +399,7 @@
* shape.
*/
public Rectangle2D getGlyphCellBounds(int glyphIndex) {
- return (Rectangle2D) getGlyphLogicalBounds(glyphIndex).getBounds2D();
+ return getGlyphLogicalBounds(glyphIndex).getBounds2D();
}
/**