Explorar el Código

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 hace 18 años
padre
commit
abad44d3f1
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6
    2
      src/java/org/apache/fop/svg/PDFGraphics2D.java

+ 6
- 2
src/java/org/apache/fop/svg/PDFGraphics2D.java Ver fichero

String endText = useMultiByte ? "> " : ") "; String endText = useMultiByte ? "> " : ") ";


AffineTransform trans = getTransform(); AffineTransform trans = getTransform();
trans.translate(x, y);
//trans.translate(x, y);
double[] vals = new double[6]; double[] vals = new double[6];
trans.getMatrix(vals); trans.getMatrix(vals);


concatMatrix(vals); concatMatrix(vals);
Shape imclip = getClip(); Shape imclip = getClip();
writeClip(imclip); writeClip(imclip);

currentStream.write("BT\n"); 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(); int l = s.length();



Cargando…
Cancelar
Guardar