Madiraju, Sharma wrote:
I have a flow text element displaying multiple text lines. I want to convert each line in the Flow text into a separate Tspan element.
Is there any simpler way?

Hi Madiraju,


Simpler than what?

   There are a couple of routes you could go here.
The simplest (and ugliest) would be to hack the existing
layout code in batik.gvt.text.GlyphLayout so it spits out
tspans to some Stream (or a String) rather than
(or in addition to) actually positioning the Glyphs
in the GlyphVector.

   You could also potentially 'post processes' the
layout codes output to determine what ended up where.
(when X coord decreases and Y increases it is a new line
etc).  This would be a bit cleaner since you would not
be modifying the actual layout code.



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



Reply via email to