[svg-developers] Re: Please help. How can I get width of text element?

2005-11-14 Thread algornik7
--- In svg-developers@yahoogroups.com, Ronan Oger <[EMAIL PROTECTED]> wrote: > > Either you calculate or guess the text width, or you use information provided > by the browser if it provides this. Batik and ASV provide this information > through their API. Not sure if FF native ecmascript prov

[svg-developers] Re: Please help. How can I get width of text element?

2005-11-14 Thread algornik7
--- In svg-developers@yahoogroups.com, Peter Thompson <[EMAIL PROTECTED]> wrote: > > The call getComputedTextLength() might be what you are looking for. I know that it works on ASVG3 and Squiggle. > > > How can I calculate? if the width of leters is different. I want to > find the width of

[svg-developers] Re: Please help. How can I get width of text element?

2005-11-15 Thread P Ramesh
Hi, You can use the getBBox() method as in the example below: textObjWidth = parseInt(textObj.getBBox().width) textObjHeight = parseInt(textObj.getBBox().height) You may also like to see more about this method at: http://svg-whiz.com/wiki/index.php?title=GetBBox Best wishes, Ramesh ---

[svg-developers] Re: Please help. How can I get width of text element?

2005-11-15 Thread Nikolya Patskov
--- In svg-developers@yahoogroups.com, "P Ramesh" <[EMAIL PROTECTED]> wrote: > > Hi, > > You can use the getBBox() method as in the example below: > > textObjWidth = parseInt(textObj.getBBox().width) > textObjHeight = parseInt(textObj.getBBox().height) > > You may also like to see more about th

Re: [svg-developers] Re: Please help. How can I get width of text element?

2005-11-14 Thread Peter Thompson
The call getComputedTextLength() might be what you are looking for. I know that it works on ASVG3 and Squiggle. How can I calculate? if the width of leters is different. I want to find the width of the text for different browser. Thank you for your answer. --