David,

The interfaces for text and tspan are defined here: 
http://www.w3.org/TR/SVG/idl.html as:

interface SVGTextElement : SVGTextPositioningElement,
                           SVGTransformable {
};

interface SVGTSpanElement : SVGTextPositioningElement {
};

Note how tspan does not have an SVGTransformable interface.

http://www.w3.org/TR/SVG/types.html#InterfaceSVGTransformable

is derived from SVGLocatable

http://www.w3.org/TR/SVG/types.html#InterfaceSVGLocatable

And it's SVGLocatable that gives text the getBBox DOM method.

As far as text decoration is concerned I'm still waiting for a response to this 
question to w3c: http://lists.w3.org/Archives/Public/www-svg/2009Oct/0010.html 
The firefox bug for text-decoration is 
https://bugzilla.mozilla.org/show_bug.cgi?id=317196

getBBox works on the entire text, getExtentOfChar works on individual glyphs.

getExtentOfChar
    Returns a tightest rectangle which defines the minimum and maximum
    X and Y values in the user coordinate system for rendering the
    glyph(s) that correspond to the specified character. The
    calculations assume that all glyphs occupy the full standard glyph
    cell for the font. If multiple consecutive characters are rendered
    inseparably (e.g., as a single glyph or a sequence of glyphs), then
    each of the inseparable characters will return the same extent.

The "all glyphs occupy the full standard glyph cell for the font" is the key 
phrase here.

Did I answer everything?

Best regards

Robert.




------------------------------------

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

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

Reply via email to