Hi Leremy,
The textPath element doesn't have dx/dy attributes. For
'dx' you probably want to use 'startOffset' on the textPath
and for 'dy' you can either set it on the 'text' element or
have a 'tspan' inside the 'textPath'.
I did find a bug where Batik ignores 'dx' on tspans inside
a textPath so for now you will have to use 'startOffset'
(which is the right thing to do anyway).
Leremy Gan wrote:
> Hi,
>
> I had a problem with the following codes.
>
> <svg width="169.33mm" height="127mm">
> <path d="M150,125C299,38 300,189 450,101" fill="none"
> stroke="rgb(255,255,0)" stroke-width="35" id="YellowPath" />
> <text font-size="14pt"><textPath font-size="14pt" word-spacing="3"
> letter-spacing="3" xlink:href="#YellowPath" dx="65" dy="6">Fibre Optic
> Road
> </textPath>
> </text>
> </svg>
>
> I find that Adobe SVG Viewer 3.0 support the attribute "dx" and "dy"
> in <textPath>, while Batik Squiggle only support the attribute "dy"
> but NOT "dx" in the <textPath>
>
> I am wondering if this happen to be a bug in Batik Squiggle, or is
> there any solution to solve this problem?
>
> Thank you.
>
> Regards,
>
> Leremy Gan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
|