cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Gaffga" <>
Subject Problems with Java1.4 and svg2png
Date Thu, 21 Mar 2002 20:00:09 GMT

Since i upgraded my System I have Problems with the svg2png serializer in

I'm using Redhat 7.2, Java1.4, Tomcat 4.0.1, Cocoon 2.0.1

When I serialize a SVG-file to PNG using the Batik libraries there are some
problems with rendering text. When I output a Text, saying "Test", and
another text, say "Test2", it write "Test" correct, but it writes "Test"
under the output of "Test2". It's a little bit difficult to explain, so I
attached the Image.

I tryed with a rebuild version of Batik agains JDK1.4, but it's still the
same effect.

Does anybody know, why this happens or if there are same problems whith
How can I solve this??

Thanks in advance
Christoph Gaffga

P.S.: Im using no XServer, only Xvfb or java with -Djava.awt.headless=true,
both has the same effect.

P.P.S.: The SVG-File, I used for the attached Picture:
<svg width="300" height="390">
  <text x="50" y="100" font-size="16" fill="black"

  <!-- Legende -->
  <rect x="3" y="379" width="8" height="8" fill="chartreuse" stroke="black"
stroke-width="0.1" shape-rendering="geometricPrecision"/>

  <text x="13" y="387" font-size="9" fill="black"

  <rect x="37" y="379" width="8" height="8" fill="tomato" stroke="black"
stroke-width="0.1" shape-rendering="geometricPrecision"/>

  <rect x="85" y="379" width="8" height="8" fill="silver" stroke="black"
stroke-width="0.1" shape-rendering="geometricPrecision"/>

  <!-- Copyright -->
  <text x="196" y="387" font-size="9" fill="blue"
text-rendering="optimizeLegibility">&#169; 2001</text>

View raw message