Hi Urs,

   Do the tspan element's have the fill attribute set?
If so this will 'win' over the inherited value from the
text element.  I just tested and in my test case it
inherits and updates the text just fine.

   Also does this explain why the text 'disappeared'?

   If it really isn't updating for you I would be interested in
getting a reproducible test case that I could check.

Urs Reupke wrote:

Something else just crosses my mind: Is there anything special I should consider
with the text if it is divided into TSpanElements? After reading the Specification
I thought, that fill-attributes are inherited to all children, but this wouldn't be the
first exception from the rule made for a TextElement.


I just checked on that idea, and indeed: When setting the fill-attribute for the
TSpanElements beneath the TextElement, everything works fine.
Now I need an additional for-loop to traverse all TSpan-Children, but that's
a minor inefficiency, I guess.
I'd just like to know whether I misunderstood the specification or if it should
be the way I thought and Batik doesn't update the properties of TSpanElements
correctly when the parent TextElement is changed.
Inheritance does work when the image is �nitially loaded on the JSVGCanvas
(with colors hardcoded in the .svg-file).
I replace the content of the TextElements with TSpanElements, and if a color is set, the text of the TSpanElements has that set color.


Anyway: Thanks for your support on this one, Tonny and Thomas.
I'm very close to completing this part of the project.

Bye
-Urs



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to