Re: Help with svg text

hi,

> I am currently developing a presentation editor tool. The application
is 
> written in Java. I have been using batik toolkit to develop graphical 
> elements for the application. Right now, I have sucessfully finished 
> incorporating line, oval and rectangle elements into the application,
but I 
> am struggling with creating svg text element. I don't know where to
start 
> with. Can someone help me out please?

If you are using Apache Batik and want to dwell deeper, you can start
with GVT part especially TextNode, TextPainter, etc From there you can
get AttributedCharacterIterator, textRun, Mark, Text Selection, etc. But
always remember that GVT part of batik is not DOM standard, it is
internal implementation used by batik. And for the current batik change
in GVT doesn't update the SVG DOM. But change in SVG DOM update the GVT

Otherwise you can use SVG DOM standard like Text,TSpan,TRef and
manipulate that. 

Or provide Rich Text Capability in front of SVG DOM text stuff, like the
swing JEditorPane HTML editor. Just look at the JEditorPane HTML editor
text editing stuff, it handle the HTML Dom update.

Or anything else, anyone got any idea?

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com

Received on Friday, 5 March 2004 15:03:41 UTC