You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Alexander Kolesnikov <ak...@sundraw.ws> on 2006/03/20 20:31:39 UTC

Text in Batik

Hello everyone,

I am experimenting with Batik and now came to dealing with text. The 
most obvious seems to add a <text> element and manipulate it through 
DOM. But then I see the org.apache.batik.gvt.text package. Could I use 
it for something?

Also I can see that text displayed by JSVGCanvas can be selected. But 
then what? How and what can I do with it?

Are there any examples of what can be done with text using Batik?

Thanks,

Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Text in Batik

Posted by th...@kodak.com.
Hi Alexander,

Alexander Kolesnikov <ak...@sundraw.ws> wrote on 03/20/2006 02:31:39 PM:

> I am experimenting with Batik and now came to dealing with text. The 
> most obvious seems to add a <text> element and manipulate it through 
> DOM. But then I see the org.apache.batik.gvt.text package. Could I use 
> it for something?

   You could but I think you will be a lot happier using the DOM.
The stuff in gvt.text is unfortunately not very usable as a general
purpose text library.  It is fairly SVG specific.

> Also I can see that text displayed by JSVGCanvas can be selected. But 
> then what? How and what can I do with it?

   You can get the selected text by registering a SelectionListener
with the TextSelectionManager (both in the batik.swing.gvt package).

> Are there any examples of what can be done with text using Batik?

        There are lots of text related samples in:
         samples/tests/spec/text
         samples/tests/spec12/text

      Also the font directory has text related samples, finally
the 'scripting' directory has a number of examples manipulating
text.

        What sorts of things are you looking to do?

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org