Hi Harald,
Harald Kuhn wrote:
I am trying to get the rendered length of a SVG Text Element. As far as i understood, the getTextLength() Method of SVGTextContentElement is supposed to do this.
No you want the "getComputedTextLength" function, "getTextLength" is tied to the "textLength" attribute (which should, if set, be the same as the computed text length but for most content it is not). The "getComputedTextLength()" function _is_ implemented.
However when i tried this, a RuntimeException was thrown and by looking at the code I found out that the Method returns an implementation of AbstractSVGAnimatedLength where getDefaultValue() and getAnimatedValue() are not implemented. My question is, wether there are any plans for implementing this method(s) ?
There is (since it's pretty simple for Batik, in fact I'm not sure why it isn't already). However, as I said above it really wouldn't help you much ;)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]