subscripts and superscripts in SVG
Posted
by
peter.murray.rust
on Stack Overflow
See other posts from Stack Overflow
or by peter.murray.rust
Published on 2012-09-08T16:24:50Z
Indexed on
2012/09/08
21:38 UTC
Read the original article
Hit count: 210
svg
I am trying to display sub- and superscripts with SVG using the following code from this site
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<g>
<text x = "10" y = "25" font-size = "20">
<tspan>
e = mc
<tspan baseline-shift = "super">2</tspan>
</tspan>
<tspan x = "10" y = "60">
T
<tspan baseline-shift = "sub">i+2</tspan>
=T
<tspan baseline-shift = "sub">i</tspan>
+ T
<tspan baseline-shift = "sub">i+1</tspan>
</tspan>
</text>
</g>
but the sub/superscripts do not display in IE or Firefox. Is this unimplemented or is there another problem? [Are you able to see the subscripts displayed properly?]
© Stack Overflow or respective owner