Re: Text Bounding Box

2003-11-06 Thread Tjorven Lauchardt
Tjorven Lauchardt wrote: I was wondering, if I could use a simpler workaround, but ended up at another problem. First the workaround: I create a java.awt.Font with the same (as far as I know) parameters, I give to the SVG DOM. After that, the variable "bounds" should contain the boundingbox of

Re: Text Bounding Box

2003-11-06 Thread Tjorven Lauchardt
Thomas DeWeese wrote: Yes, but you need to build this with the associated GVT tree. Here you have two options. 1) Build it as a 'dynamic' document so as you append elements it will automatically build the rendering tree version and the geometric information will be immediately availa

Re: Text Bounding Box

2003-11-05 Thread Thomas DeWeese
Tjorven Lauchardt wrote: Hello, I am creating a application with Batik and I have the following problem. I am buidling a DOM Tree and I want to know the bounding box of the text-Elements while I am building the DOM. I need that information, because I want to create a fitting rect as a background

Re: Text Bounding Box

2003-11-05 Thread Tonny Kohar
Hi, If you use the GVT part from batik, you can get then bounding box by calling textNode.getBounds(), that textNode is not SVG TextNode element, but GVT TextNode I think the SVGDOM doesn't define the bounding box for text element, but not so sure either. Regards Tonny Kohar http://www.kiyut.c