Hi Mike,
news <[EMAIL PROTECTED]> wrote on 09/13/2006 05:42:59 PM:
> I have to admit that all this is a wee bit discouraging... "All I Want
> To Do"(TM) is render some text and have the hight of the graphic be
> constrained to the height of the wrapped text. It seems like that
> should be dead simple, but it turns out that SVG has no concept of this,
> and I need to write an onload handler to fixup the container size.
Yes, this is not the way SVG is designed. Given the intent of
SVG I am not sure it could do it much better.
> OK, no problem... oh, but wait, it's not as easy as just asking for a
> bounding box anymore, now you have to walk over the glyphs and calculate
> that yourself...
As I said originally, this is really a bug in Batik. The FlowRoot
element should implement the SVGLocatable interface which provides
getBBox and a number of other useful features. I'd even fix this
for you but flowRoot is a dead end right now. The SVG WG did an
about face after 2 years and went in a different direction.
> is it a bad sign when the very first thing a clueless newbie wants
> to do with SVG turns out to require "esoterica" to get it working?
Well I think you just got lucky (or not as the case may be).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]