Loading ...
Sorry, an error occurred while loading the content.
 

Writting along a path

Expand Messages
  • Ori Burstein
    Hi, I m trying to write a text along a path, but even when using the documentation, it still won t work. here is what I have done:
    Message 1 of 2 , Jan 2, 2003
      Hi,
      I'm trying to write a text along a path, but even when
      using the documentation, it still won't work. here is
      what I have done:
      <defs >
      <path id="Path_1" d="M 100 446 L 110 426 z " />
      </defs>
      <g id="textLayout_1">
      <use xlink:href="#Path_1" style="stroke:brown;
      stroke-width:2" />
      <text style="writing-mode: lr; font: Verdana;
      text-anchor: middle; font-size: 14" x="200" y="200">
      <tspan dy="0">abcde</tspan>
      </text>
      </g>


      Am I doing something wrong here?
      Please advise.
      Thanks,
      Ori.


      __________________________________________________
      Do you Yahoo!?
      Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
      http://mailplus.yahoo.com
    • Antoine Quint
      Hi Ori, ... Indeed. You re missing a element within your element:
      Message 2 of 2 , Jan 2, 2003
        Hi Ori,

        > Hi,
        > I'm trying to write a text along a path, but even when
        > using the documentation, it still won't work. here is
        > what I have done:
        > <defs >
        > <path id="Path_1" d="M 100 446 L 110 426 z " />
        > </defs>
        > <g id="textLayout_1">
        > <use xlink:href="#Path_1" style="stroke:brown;
        > stroke-width:2" />
        > <text style="writing-mode: lr; font: Verdana;
        > text-anchor: middle; font-size: 14" x="200" y="200">
        > <tspan dy="0">abcde</tspan>
        > </text>
        > </g>
        >
        >
        > Am I doing something wrong here?

        Indeed. You're missing a <textPath xlink:href="#Path_1"> element within
        your <text> element:

        <text style="writing-mode: lr; font: Verdana; text-anchor: middle;
        font-size: 14" x="200" y="200">
        <textPath xlink:href="#Path_1">abcde</textPath>
        </text>

        Antoine
        --
        Antoine Quint <antoine.quint@...>
        SVG Consultant & Research Engineer, Fuchsia Design
        W3C SVG Working Group Invited Expert
        Journal - http://use.perl.org/~graouts/journal/
      Your message has been successfully submitted and would be delivered to recipients shortly.