Hi Andreas,

    The text stuff is _extremely_ complex, for simple text you would 
probably be
better off creating a subclass of our GraphicsNode that just uses 
drawString.
However, see below for the current problem.

Andreas Gal <[EMAIL PROTECTED]> wrote on 05/08/2007 02:58:19 AM:

> I am using batik to render a user interface based on a SVG 
> description. The input is parsed and a GVT tree built using the tree 
> builder. I can then move (transform) named nodes, hide them, etc. I 
> manipulate directly GraphicsNodes which seems to be much faster (for 
> repeated UI changes and re-rendering) than re-parsing the DOM 
> representation. One thing I have not been able to do is change the 
> text of text nodes. How is that supposed to work? If I re-instantiate 
> a AttributedString using the attributes from 
> TextNode.getAttributedCharacterIterator.getAttributes(), the new 
> string is rendered in the right location, but with all characters on 
> top of each other (no spacing in between characters). Any hints are 
> welcome.

   It sounds like you are copying the:
        org.apache.batik.gvt.text.GVTAttributedCharacterIterator.X
        org.apache.batik.gvt.text.GVTAttributedCharacterIterator.Y

   Attributes from the first char across the entire string.  Hence
causing all the chars to have the same X/Y position.


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

Reply via email to