xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Hecht ...@hhecht.e4ward.com>
Subject Re: please help: rasterizer bug
Date Mon, 25 Nov 2013 23:34:59 GMT
It would have been easier if you had posted a minimal (non)working 
example, but I think this is the same as this bug:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49736
which I encountered in this thread two years ago:
http://thread.gmane.org/gmane.text.xml.batik.user/15374

I have verified that removing all whitespace surrounding the first tspans 
in each text group in your sample document fixes the text anchoring in 
Batik, so it is very likely the same bug.  As the bug is now over three 
years old, I would not expect it to get fixed in Batik unless you can fix 
it yourself.  Unfortunately, I am only a very shallow and occasional Batik 
user, so I don't know Batik or SVG well enough to fix non-trivial bugs. 
I think this one is especially hard as it depends on JDK version; it may 
not be, strictly speaking, a Batik bug.  I remember that someone was able 
to bisect the bug appearnce in JDK versions, which information should be 
in one of the links above.

Deleting the surrounding whitespace can be done easily with a sed script, 
or some other post-processor; which is what I am (still) doing.  Most XML 
serializers cannot be configured to output without whitespace and none 
that I am aware of can do so on an element-by-element basis.

You can also avoid the bug by having only a single tspan per text element, 
which may give a further clue as to the cause, but is of course a rather 
nonsensical way of marking things up and so not really a workaround.

-- 
HH

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


Mime
View raw message