Sorry - I didn't realize there were any responses to my message.
In Illustrator 10, I had to use align left and set the left side of the
text where I would like the center to be. Then I added (in Illustrator)
some onload Javascript to the text which sets text-anchor="middle".
example:
onload="setStyleProp(evt, 'text-anchor', 'middle');"
function setStyleProp(mouseEvent, property, setting)
{
var tgt = mouseEvent.getTarget();
tgt.getStyle().setProperty(property, setting, null);
}
Thanks for the responses.
On Tue, 2005-01-18 at 12:16, sara_j_porter wrote:
> Can you give us an example of the image?
>
> -Sara Porter
>
> --- In [email protected], "wsdickerson"
> <[EMAIL PROTECTED]> wrote:
> >
> > Is there a way to set text-anchor="middle", "start" or "end" in
> > Illustrator 10? I've tried paragraph align left, center and right
> > but the text is left aligned in the SVG. I'm dynamically
> > changing "0%"..."100%" etc. and would like for the text to stay
> > center aligned. I had to manually insert text-anchor="middle" and
> > adjust the x position - then it looked OK in Batik.
> >
> >
> > Thanks
>
>
>
>
>
> -----
> 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 the Yahoo! Terms of
> Service.
* --
Stan Dickerson
Product Development Engineer
Energy Control Systems
2940 Cole Court
Norcross, GA 30071
1-800-648-0970
770-448-0651
770-446-1319 fax
-----
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/