Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.5
-
None
-
None
-
Operating System: All
Platform: All
Description
GVT TextNode bug
This bug occur on SVGTSpanElement with dx & dy attrib without x & y attrib.
The getBounds() from TextNode doesn't return the correct boundary, the boundary
always
start from 0,0 coord.
Looking at the source the fix could be either in
- Batik Bridge
when setting the AttributedCharacterIterator on TextElement it calculate the x
& y attrib for non existent x & y attrib
or - Batik GVT
when processing AttributedCharacterIterator, it calculate the x & y attrib for
non existent x & y attrib
work around
instead of using gvtTextNode.getBounds(), use gvtTextNode.getOutline().getBounds()