Thank you very much, Aashish. What is HTH?
Narcis --- Aashish Singhvi <[EMAIL PROTECTED]> wrote: > > --- In svg-developers@yahoogroups.com, Narcis > Vasiliu > <[EMAIL PROTECTED]> wrote: > > It is a way to get the dimensions of a text (in > > milimeters) rendered by Adobe SVG Viewer? > > > > If you a text element looks like this in your svg > element: > <text id="T1" x="100" y="100" style="font-size:10; > stroke:black; > stroke-width:1; fill:none">WHATTHEHELL</text> > > Then in your javascript, you can get close with > var textbox = svgdoc.getElementById("T1").getBBox(); > > You should be able to get the required information > through > textbox.width and textbox.height > > (I think it will work even when the text is on a > path. However, > remember that the dimension would always be > rectangular box bounding > the text) > > I am not familar with 'userspace' attributes on SVG > document. You > could join with that to get the height in > millimeters. If using > pixels, 72px = 25.4 mm > > HTH, > Aashish > > > > > __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 ----- 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/