What specific function can't you get to work? The following code is just one way to get the length of text, which could be what you mean by 'width': <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" onload="onInit(evt)"> <script type="text/ecmascript"><![CDATA[ var svgDocument = null; var svgRoot = null; function onInit(evt) { svgDocument = evt.target.ownerDocument; svgRoot = svgDocument.documentElement; var sample = svgDocument.getElementById('sample'); var textLength = sample.getComputedTextLength(); var window = svgDocument.getElementById('window'); window.firstChild.setData(textLength); } // ]]></script> <g style="font-size: 14pt;"> <text id="sample" x="20" y="30">Some text here</text> <text id="window" style="fill:blue" x="200" y="30">text length goes here</text> </g> </svg>
rg_espinola <[EMAIL PROTECTED]> wrote: hi all, i do have a problem in getting the text font width. regards, Robert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] ----- 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/

