Hi Mark,

news <[EMAIL PROTECTED]> wrote on 09/11/2006 02:36:24 PM:

> I'm using Batik 1.6 and using Squiggle to test my pathetic attempts at 
> hacking SVG.  Here's my markup, it's pretty simple:

   I think you may need to upgrade to the SVN version of Batik

>    <flowRoot [...]>
>      <flowRegion vertical-align="left">
>        <rect x="0" y="0" width="150" height="75"/>
>      </flowRegion>

>      <flowDiv><flowPara>Hi from Batik!</flowPara></flowDiv>

>    </flowRoot>
> </svg>

> So, what am I supposed to take the getBBox() of?  Batik says getBBox is 
> undefined for the flowRoot, flowRegion, flowDiv and flowPara elements. 

   It appears you are right.  However I don't think we are apt to fix this
as SVG 1.2 changed directions after we implemented this.  Post
Batik 1.6 we updated the flowDiv/flowPara elements to implement the 
TextContent interface.  So you can get the bbox of individual chars
which you could use to build this up.

> And then... on which element will I set the height attribute?  The root 
> element, the rect, or both? 

    flowRoot doesn't have a height attribute.  You would set the height
attribute on the rect.  You should make sure the rect is 'oversized' 
before you start otherwise the last chars won't be displayed at all.

> Am I even setting this <flowRoot> business up correctly in the first 
place?

   It looks good to me.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to