cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robby.pelss...@vodafone.com
Subject RE: SVG to JPEG/PNG conversion problems
Date Mon, 05 Jul 2004 13:43:19 GMT
Have you tried out following:

<text x="400" y="250"
style="fill:blue;text-anchor:middle;font-family:Verdana;font-size:22">This
is a simple sample</text>

Don't know if it'll work though !!

Regards,
Robby

-----Original Message-----
From: Sebastien Gabel [mailto:Sebastien.Gabel@edag.de]
Sent: 05 July, 2004 15:28
To: cocoon-users@apache.org
Subject: SVG to JPEG/PNG conversion problems


Ok, technically it seems to be correct,,,,,I checked with the W3C
recommendations.
For example, if I try this very simple code : in SVG no problem....but when
I try with Batik, I obtain a blank pic (800 x 600) without the text !!!
In my case, I have to draw graphs in SVG thanks to a Java program. The main
problems seems to concern text tag, the rest is good and work correctly.
For the text tag I obtain two different kind of results : first the text is
displayed but not correctly (font, size, alignment not respected). Second
result : nothing is displayed !

For example, I don't manage to generate the pic associated with this part of
code :

<svg width="800px" height="600px" xmlns="http://www.w3.org/2000/svg"
version="1.1">
<g font-family="Verdana" font-size="22">
<text x="400" y="250" fill="blue" text-anchor="middle">This is a simple
sample</text>
</g>
</svg>

I've also tried :

<svg width="800px" height="600px" xmlns="http://www.w3.org/2000/svg"
version="1.1">
<g>
<text x="400" y="250" fill="blue" text-anchor="middle" font-family="Verdana"
font-size="22">This is a simple sample</text>
</g>
</svg>

and finally :

<svg width="800px" height="600px" xmlns="http://www.w3.org/2000/svg"
version="1.1">
<text x="400" y="250" fill="blue" text-anchor="middle" font-family="Verdana"
font-size="22">This is a simple sample</text>
</svg>

Why it doesn't work in PNG or JPEG conversion ?

Thanks,

Sebastien



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message