[svg-developers] Re: Please help. How can I get width of text element?
--- 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 this method at: > http://svg-whiz.com/wiki/index.php?title=GetBBox > > Best wishes, > > Ramesh > Yes it's good way to find out the text width. But I would like to use getComputedTextLength(). Thanks a lot. Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM ~-> - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: Please help. How can I get width of text element?
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 Yahoo! Groups Sponsor ~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM ~-> - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: Please help. How can I get width of text element?
--- 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 the text for different browser. Thank you for your > answer. > > > > > - > Yahoo! FareChase - Search multiple travel sites in one click. > > [Non-text portions of this message have been removed] > Thanks a lot. I found that I was looking for. Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~-> - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Re: Please help. How can I get width of text element?
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. - Yahoo! FareChase - Search multiple travel sites in one click. [Non-text portions of this message have been removed] Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~-> - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: Please help. How can I get width of text element?
--- 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 provides it. > > Did you look it up in the SVG Wiki? It might be there. > > http://wiki.svg.org > > Ronan > > On Monday 14 November 2005 12:40, algornik7 wrote: > > Please help. How can I get width of text element? > > > > > > > > > > > > > > - > > To unsubscribe send a message to: > > [EMAIL PROTECTED] -or- > > visit http://groups.yahoo.com/group/svg-developers and click "edit my > > membership" > > > > > > > > YAHOO! GROUPS LINKS > > > > > > Visit your group "svg-developers" on the web. > > > > To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > -- > > Ronan Oger > > [EMAIL PROTECTED] > www.vectoreal.com ...for scalable solutions. > > - > Switzerland > Mobile: +41 76 527 3552 > Fax: +41 44 274 2402 > 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. Yahoo! Groups Sponsor ~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~-> - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/