- From: Apu Nahasapeemapetilon <petilon@yahoo.com>
- Date: Sat, 27 May 2000 11:43:21 -0700 (PDT)
- To: www-svg@w3.org
Take a look at the two simple SVG files below. The first doesn't use <tspan> but the second does. Both files ought to produce identical results. But in the Adobe viewer, if you flip from one file to the next you can see that the text shifts many pixels to the left when you use <tspan>. In order to confirm that this is a bug in the Adobe viewer I decided to test these files using the IBM viewer. However IBM completely ignores text-anchor when you use <tspan>. Can someone confirm that the bug is in the viewers and not in the SVG files below? ---------------------------------------- file #1 ---------------------------------------- <?xml version="1.0" standalone="no"?> <svg xml:space="preserve" width="167" height="126"> <g transform="matrix(1 0 0 1 83.7 32.05)" style="font-family:Arial; font-size:24; text-anchor:middle"> <text x="0" y="0">The quick</text> <text x="0" y="26">brown fox</text> <text x="0" y="52">jumps over</text> <text x="0" y="78">the lazy dog.</text> </g> <path style="stroke:#000000;stroke-width:1;fill:none" d="M9.624 9.364 l148.156 0 0 106.735 -148.156 0 z"/> </svg> ---------------------------------------- file #2 ---------------------------------------- <?xml version="1.0" standalone="no"?> <svg xml:space="preserve" width="167" height="126"> <g transform="matrix(1 0 0 1 83.7 32.05)" style="font-family:Arial; font-size:24; text-anchor:middle"> <text> <tspan x="0" y="0">The quick</tspan> <tspan x="0" y="26">brown fox</tspan> <tspan x="0" y="52">jumps over</tspan> <tspan x="0" y="78">the lazy dog.</tspan> </text> </g> <path style="stroke:#000000;stroke-width:1;fill:none" d="M9.624 9.364 l148.156 0 0 106.735 -148.156 0 z"/> </svg> __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/
Received on Saturday, 27 May 2000 14:43:23 UTC