Selaa lähdekoodia

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.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344148 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_90-alpha1
Jeremias Maerki 18 vuotta sitten
vanhempi
commit
abad44d3f1
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 6
    2
      src/java/org/apache/fop/svg/PDFGraphics2D.java

+ 6
- 2
src/java/org/apache/fop/svg/PDFGraphics2D.java Näytä tiedosto

@@ -1457,16 +1457,20 @@ public class PDFGraphics2D extends AbstractGraphics2D {
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();


Loading…
Peruuta
Tallenna