Explorar el Código

Merge from Trunk as per Thomas' request:

Bugfix: The generation of the PDF "d" (setdash) command was assuming that only integer values can be used but that isn't the case. Dash patterns by PDFGraphics2D would be wrong in the process.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_92@394996 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_92-beta
Jeremias Maerki hace 18 años
padre
commit
2e95985260
Se han modificado 2 ficheros con 7 adiciones y 8 borrados
  1. 2
    8
      src/java/org/apache/fop/svg/PDFGraphics2D.java
  2. 5
    0
      status.xml

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

@@ -1271,20 +1271,14 @@ public class PDFGraphics2D extends AbstractGraphics2D {
if (da != null) {
currentStream.write("[");
for (int count = 0; count < da.length; count++) {
if (((int)da[count]) == 0) {
// the dasharray units in pdf are (whole) numbers
// in user space units, cannot be 0
currentStream.write("1");
} else {
currentStream.write("" + ((int)da[count]));
}
currentStream.write(PDFNumber.doubleOut(da[count]));
if (count < da.length - 1) {
currentStream.write(" ");
}
}
currentStream.write("] ");
float offset = bs.getDashPhase();
currentStream.write(((int)offset) + " d\n");
currentStream.write(PDFNumber.doubleOut(offset) + " d\n");
}
int ec = bs.getEndCap();
switch (ec) {

+ 5
- 0
status.xml Ver fichero

@@ -29,6 +29,11 @@
<release version="FOP Trunk">
</release>
<release version="0.92beta" date="18 Apr 2006">
<action context="Code" dev="JM" type="fix">
Bugfix: The generation of the PDF "d" (setdash) command was assuming that
only integer values can be used but that isn't the case. Dash patterns
PDFGraphics2D would be wrong in the process.
</action>
<action context="Code" dev="JM" type="fix">
Bugfix: Fixed a division by zero problem in TTFReader and improved the detection
of the capHeight and xHeight font metric values for TrueType fonts.

Cargando…
Cancelar
Guardar