xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Tosovsky" <j.tosov...@tiscali.cz>
Subject Text on Path - startOffset range
Date Mon, 21 Feb 2011 21:40:33 GMT
Hello Everyone,

I am creating a wheel with labels on it (text on the path) but as text
outside the path is clipped, I must to render these cases twice (the second
time out of 0-100% range), see the attached test case. But it seems to be
not supported by Batik as Squiggle tools returns the following exception:

org.apache.batik.bridge.BridgeException: file:/D:/data.svg:24
The attribute "startOffset" of the element <textPath> is invalid
	at
org.apache.batik.bridge.SVGTextPathElementBridge.createTextPath(SVGTextPathE
lementBridge.java:132)
	at
org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(SVGT
extElementBridge.java:949)
	at
org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(SVGTextEl
ementBridge.java:856)
	at
org.apache.batik.bridge.SVGTextElementBridge.computeLaidoutText(SVGTextEleme
ntBridge.java:636)
	at
org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(SVGTextElemen
tBridge.java:292)
	at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:224)
	at
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
	at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
	at
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
	at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
	at
org.apache.batik.swing.svg.GVTTreeBuilder.run(GVTTreeBuilder.java:96)

Only Firefox 4.0beta or Opera renders it as expected. Is there any chance to
support this also in Batik? I have no idea what workaround to choose for
this... 

Regards,
Jan


Mime
View raw message