xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: textpath dx
Date Wed, 26 Jan 2005 10:30:01 GMT
Hi Leremy,

Leremy Gan wrote:

> 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.
> 
> I am not sure whether 'dy' is not an attribute of <textPath> but it
> does work when I apply on it.

     I will be fixing this (having textPath 'pay attention' to
positioning attributes) in Batik.  So I suggest you either
move it to the text element (which might not work in Adobe) or
move it to a tspan or your code may break in a future release
of Batik.

> 
> 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
> 


---------------------------------------------------------------------
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