Sherm
Not sure if this is what you are looking for but you can certainly put text
on a curve (ie a path). You can just not display the path (remove the
<use>)and the text will appear curved but still be animated. Or you can
remove the animation and the text will be static but curved.
Hope this helps.
<?xml version="1.0" encoding="iso-8859-1"?>
<svg width="100%" height="100%" viewBox="0 0 600 400"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<path id="textPathCurve" d="M100 200Q200,100 300,200 T500,200 M100
200Q200,100 300,200 T500,200" stroke="red" fill="none" />
</defs>
<text>
<textPath xlink:href="#textPathCurve">
<tspan>Textpath on Bezier's curve</tspan>
<animate start="0s" dur="5s" attributeName="startOffset" to="100%"
fill="freeze" />
</textPath>
</text>
<use xlink:href="#textPathCurve" />
</svg>
Trevor
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Holger Will
Sent: Thursday, 7 July 2005 8:45
To: [email protected]
Subject: Re: [svg-developers] Convert type to paths with SVG
Sherm schrieb:
> I have a web/CD project that requires squeezing text to fit into a
> certain width. Unfortunately, we're stuck using Adobe's SVG viewer,
> which doesn't seem to support 'textLength' or 'lengthAdjust'
>
> Is there a way to render text into SVG curves on the fly? Then I
could
> manipulate the curves to my heart's content.
>
> Thanks in advance for your replies.
>
> Sherm Stevens
>
hi sherm
here is a little script which you could use to adjust the fontsize,
its
not perfect, but maybe you could work of of that.
http://www.treebuilder.de/svg/textAdjust.svg
as to answer your question, i dont think there is no build in way to
render text to curves(only curves to text),
but you can do all types of transformations on textelements as well.
hth
Holger
-----
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
* Visit your group "svg-developers
<http://groups.yahoo.com/group/svg-developers> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]
-----
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/