Hi all, I'm a developer on the Anathema project, where we use Batik to create and display a directed graph (representing dependencies in the Exalted game system). It's been great to us, mostly, but we've recently discovered a pair of odd problems:
First, if we use DOMUtilities to write out the Document from our canvas, we get a duplicate xmlns attribute in the resulting SVG file, causing every viewer I've tried to refuse to render it. This is only a minor inconvenience, but seems like a real bug. I've only observed the problem under Windows 7 64-bit, but I haven't checked under other operating systems yet. We're using the Batik 1.7 libraries. Second, and much more severe for our purposes: JSVGCanvas seems to differ from our intentions (and both Firefox and Chrome) in rendering multiple <tspan>'s inside a <text> element with the text-anchor="middle" property. When we use either our own Canvas or Squiggle, all but the last <tspan> render their content as if they had text-anchor="start" - the last one renders 'correctly', with text anchored at its middle. This behavior repeats on both Windows XP 32-bit and Windows 7 64-bit. Strangely enough, this gets different behavior on Linux... On Linux (Ubuntu 10.04, to be specific), all <tspan>'s in such a situation render correctly. Any thoughts, or suggestions as to possible workarounds for the second problem? This is a serious problem for us, as we really need to be able to control the alignment of the text we word-wrap. Here's a sample SVG file where you can see the difference in rendering. The only edit I've made to it is to remove the duplicate xmlns attribute, so it can render successfully. Thanks, - Eric Astor
<<attachment: lastCharmTree.svg>>
--------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org