--- 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/