At 14:21 +0100 05/03/2011, honyk wrote:

>is there any possibility to specify the text rendering position on a path? I
>mean to specify if it has to be rendered inside or outside the hypothetical
>circle.
>
>In the attached example I'd like to achieve that text on red arc rendered
>outside. Is is possible without any transformations?


I see no arcs in your code.  If you define two concentric arcs with a 
difference in radius adapted to the height of your formatted text 
then you can achieve the result you seem to want:



<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
<svg fill="none" width="500" height="500" 
preserveAspectRatio="xMidYMid meet" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink";
        xmlns:ev="http://www.w3.org/2001/xml-events";>
<defs>
   <path id="innerarc" d="M 0 0 a 100 100 0 0 0 0 -200" stroke="red" />
   <path id="outerarc" d="M 0 20 a 120 120 0 0 0 0 -240" stroke="red" />
</defs>

<g transform="translate(200 250)">
   <use xlink:href="#innerarc" />
   <text style="font-size:20pt;font-family:sans-serif;fill:maroon;"
   text-anchor="middle">
     <textPath xlink:href="#outerarc" startOffset="50%">
Hello World!
     </textPath>
   </text>
</g>

</svg>




------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to