Hi Lars Eirik, "Lars Eirik Rønning" <[EMAIL PROTECTED]> wrote on 06/24/2008 03:03:56 AM:
> I have a svg file created in Illustrator. This contains temporary
> text which need to be replaced with actual text.
> However when i try to do this, the text does not appear (i guess
itsclipped).
If I recall correctly Illustrator does some weird things
with text in it's output. If truly no text is showing then
it may be a problem with that, otherwise it should be shown as much
as possible, even if part of it is clipped.
> Using batik is there an easy way to investigate the size of the
> placeholder and have this autoadjust to fit the new text i need to
> place into the svg document?
Once you have substituted the text content into the text element,
you can call 'getBBox' on the text element and it will return the
bounds of the current text.
> Can the viewBox attribute be ommitted (not looking for interactive
> feature), can someone give me a brief explanation on how this works?
The viewBox can be ommitted but this has effects on how the document
is presented. The short explanation is that the region of the canvas
referenced by the viewBox is scaled to fit the document window (which
typically get's it's size from the width and height attributes on the
outermost SVG element). Some other attributes to investigate with
viewBox are 'overflow' and 'preserveAspectRatio'.
Why do you want to remove this?
Thomas DeWeese | CDG Advanced Development |
Eastman Kodak Company | 343 State Street | Rochester, NY 14650-0128 |
[EMAIL PROTECTED] | 585 781-9059 |
www.kodak.com
<<image/gif>>
