W3C home > Mailing lists > Public > www-svg@w3.org > March 2000

Text alignment, rotation, etc

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Wed, 8 Mar 2000 14:47:33 -0700
Message-ID: <00E567D938B9D311ACEC00A0C9B468730C7621@THOR>
To: "'www-svg@w3.org'" <www-svg@w3.org>
I've been trying to build up a X-Y plot in SVG using XSLT and I have had
frustration in being able to center align text, right align text and to
rotate text 90 degrees.  I don't know if I'm misinterpreting the spec
or if the Adobe plug-in hasn't implemented these yet.

<!-- an attempt to position a label below and centered on 90,366  -->
<text x="90" y="366 " style="text-anchor:middle; glyph-anchor:topline;">300</text>

<!-- an attempt to position a label even and to the right of 64,355  -->
<text y="355" x="64" style="text-anchor:end; glyph-anchor:centerline;">0.000</text>

<!-- an attempt to label the y-axis with vertically oriented text  -->
<text x="60" y="200" style="text-anchor:middle; glyph-orientation-horizontal:90;">Liquid Viscosity</text>

All of these displayed as if they ignored the style attributes.  So, am I reading the
spec wrong or has the Adobe plug-in not implemented these yet.

Some samples in either the SVG spec or the Adobe samples page would be useful.
These seem to be a lot more common than text on a roller-coaster.
Received on Wednesday, 8 March 2000 16:51:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:47 UTC