Stephen Nelson wrote:

Hello all...

Sorry if this is a bit FAQish and off-topic. I'm looking for the best way to do wrapped text in SVG that Batik will be able to render. I know that SVG 1.0 doesn't support wrapped text. Is there any way at all to use Batik to generate wrapped/flowed text within a table-like structure?


Batik provides an extension element called: 'flowText'
This allows you to provide a rectangle(s) and it will flow as much text as will fit into
that rectangle(s). This is not like a table where you say fill this column with this text
and it will size the rectangle within given constraints. However given your description
below this seems like it would work well (you would 'prespecify' the grid and it
would show as much information from the schedule as will fit in a particular grid).


This element is trying to follow SVG 1.2 developments so things may change.
Take a look at the examples in samples/extensions, in particular 'flowText.svg'
and 'flowTextAlign.svg'.


A bit of background on what I'm doing, for those who are interested. I'm working on an automated video broadcast system based on Linux. The system plays video content at specified times. Between programs, it (among other things) displays a schedule screen listing the names and times of the next few programs. I'd like to generate this screen, and a number of others, by doing XSLT transformation to SVG, then rasterizing the SVG with Batik. However, since I will be working with a fixed screen size, I need word wrapping. Can I do this with Batik?


--------------------------------------------------------------------- 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