W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

Re: Help with svg text

From: Tonny Kohar <tonny@kiyut.com>
Date: 06 Mar 2004 03:09:26 +0700
To: www-svg@w3.org
Message-Id: <1078517366.2074.13.camel@localhost>


> I am currently developing a presentation editor tool. The application
> 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
> 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?

Tonny Kohar
SVG Graphics Editor
Received on Friday, 5 March 2004 15:03:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:58 UTC