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 Andy Fendley <an...@fendley.com> on 2013/04/29 17:22:14 UTC

Bounding Box (getBBox())

Hi all,

I have a question regarding using Batik in a headless environment.

Regarding the [    getBBox()   ]  method and a piece of text within an SVG document that is NOT rendered and is in a headless environment such as a web application, is there any way, knowing the text point size and having the font (ttf) available to determine this bounding box using the batik software?

We have an [ SVGDocument ] in memory and thats it.

Many thanks for any response in advance, and Batik is working superbly well for us.

Andy



Andy Fendley BEng (Hons) MSc 
_________________________________

Software Consultant

LinkedIN: profile
_________________________________

skype	andrewfendley
twitter	@andyfendley
mobile	+44 (0) 7590 726426
__________________________________


Re: Bounding Box (getBBox())

Posted by Andy Fendley <an...@fendley.com>.
Hi Jonathan,

Many thanks for this, I will investigate.

Andy


On 29 Apr 2013, at 18:27, jonathan wood wrote:

> Hi Andy,
> 
>    Yes you can obtain a valid bbox in a headless environment.  You'll need to boot the svg and dom css.....
> 
> http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom
> 
> 
> 
> 
> On Mon, Apr 29, 2013 at 11:22 AM, Andy Fendley <an...@fendley.com> wrote:
> Hi all,
> 
> I have a question regarding using Batik in a headless environment.
> 
> Regarding the [    getBBox()   ]  method and a piece of text within an SVG document that is NOT rendered and is in a headless environment such as a web application, is there any way, knowing the text point size and having the font (ttf) available to determine this bounding box using the batik software?
> 
> We have an [ SVGDocument ] in memory and thats it.
> 
> Many thanks for any response in advance, and Batik is working superbly well for us.
> 
> Andy
> 
> 
> 
> Andy Fendley BEng (Hons) MSc 
> _________________________________
> 
> Software Consultant
> 
> LinkedIN: profile
> _________________________________
> 
> skype	andrewfendley
> twitter	@andyfendley
> mobile	+44 (0) 7590 726426
> __________________________________
> 
> 





Andy Fendley BEng (Hons) MSc 
_________________________________

Software Consultant

LinkedIN: profile
_________________________________

skype	andrewfendley
twitter	@andyfendley
mobile	+44 (0) 7590 726426
__________________________________


Re: Bounding Box (getBBox())

Posted by jonathan wood <jo...@gmail.com>.
Hi Andy,

   Yes you can obtain a valid bbox in a headless environment.  You'll need
to boot the svg and dom css.....

http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom




On Mon, Apr 29, 2013 at 11:22 AM, Andy Fendley <an...@fendley.com> wrote:

> Hi all,
>
> I have a question regarding using Batik in a headless environment.
>
> Regarding the [    getBBox()   ]  method and a piece of text within an SVG
> document that is NOT rendered and is in a headless environment such as a
> web application, is there any way, knowing the text point size and having
> the font (ttf) available to determine this bounding box using the batik
> software?
>
> We have an [ SVGDocument ] in memory and thats it.
>
> Many thanks for any response in advance, and Batik is working superbly
> well for us.
>
> Andy
>
>
>
> Andy Fendley BEng (Hons) MSc
> _________________________________
>
> *Software Consultant*
>
> LinkedIN: profile <http://uk.linkedin.com/pub/andy-fendley/6/2/802>
> _________________________________
>
> skype andrewfendley
> twitter @andyfendley
> mobile +44 (0) 7590 726426
> __________________________________
>
>