xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leremy Gan <ler...@gmail.com>
Subject Re: textpath dx
Date Wed, 26 Jan 2005 04:19:28 GMT
Hi Thomas,

I think to reduce the code length and the complexity of adding <tspan>
can be solve by having both 'startOffset' and 'dy' in the <textPath>
element.

   <path id="pathX" d="M253,159C355,23 373,247 475,112C576,-22 428,57
428,57" fill="none" stroke="rgb(0,0,0)" />
   <text fill="none" stroke="rgb(0,0,0)"><textPath xlink:href="#pathX"
startOffset="5%" dy="-8">Road Railway
      </textPath>
   </text>

I am not sure whether 'dy' is not an attribute of <textPath> but it
does work when I apply on it.

Thanks.

Regards,
Leremy Gan


On Tue, 25 Jan 2005 17:35:13 -0500, Thomas DeWeese
<Thomas.DeWeese@kodak.com> wrote:
> 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
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message