You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/11/14 17:02:16 UTC
svn commit: r344148 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
Author: jeremias
Date: Mon Nov 14 08:02:05 2005
New Revision: 344148
URL: http://svn.apache.org/viewcvs?rev=344148&view=rev
Log:
Bugzilla #37330:
Fix for clipped text when painted through the PDF text bridge. The translation was in the wrong place and therefore had an effect on the clipping region.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java?rev=344148&r1=344147&r2=344148&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java Mon Nov 14 08:02:05 2005
@@ -1457,16 +1457,20 @@
String endText = useMultiByte ? "> " : ") ";
AffineTransform trans = getTransform();
- trans.translate(x, y);
+ //trans.translate(x, y);
double[] vals = new double[6];
trans.getMatrix(vals);
concatMatrix(vals);
Shape imclip = getClip();
writeClip(imclip);
+
currentStream.write("BT\n");
- currentStream.write("1 0 0 -1 0 0 Tm [" + startText);
+ //currentStream.write("1 0 0 -1 0 0 Tm [" + startText);
+ currentStream.write("1 0 0 -1 "
+ + PDFNumber.doubleOut(x) + " " + PDFNumber.doubleOut(y)
+ + " Tm [" + startText);
int l = s.length();
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org