W3C home > Mailing lists > Public > public-svg-print@w3.org > April 2005

Re: Urgent Help

From: Dean Jackson <dean@w3.org>
Date: Thu, 21 Apr 2005 08:37:45 +1000
Message-Id: <b92fc1761fad142f6bb632e118e93ba9@w3.org>
Cc: public-svg-print@w3.org
To: ganesh jothikumar <ganesh.jothikumar@oracle.com>

Ganesh,

If you ask on svg-developers@yahoogroups.com you'll get a
lot of help.

Dean

On 21 Apr 2005, at 02:05, ganesh jothikumar wrote:

>  Hi
>
>  1)    I have the following piece of  code in my svg
>
>     <path id="attract" style="fill:none" d="M 177,235 C 160,235 
> 160,115 180,115"/>
>      <text style="fill:white;font-size:25 
> ;font-family:Verdana;font-weight:bold">
>      <textPath xlink:href="#attract">
>          ATTRACT
>      </textPath>
>      </text>
>
> Now I would like to align the text 'ATTRACT' in the center of the 
> curve. I'm not able to achieve this using text-anchor:middle. Please 
> help
>
>  2)  I would like to zoom my svg image programmatically. I know it can 
> done. But my zooming requires that the width alone be increased and 
> the height remains          constant. How can I do it.
>
>  With regards
>  ganesh
>
>  Dean Jackson wrote:
>> Hi Ganesh,
>>
>>  On 19 Apr 2005, at 00:29, ganesh jothikumar wrote:
>>
>>>  I have a requirement wherin I will have to zoom the svg image. I 
>>> know that this can be done using CTRL key. But can this be done 
>>> programaticaly.
>>
>>  Firstly, you might want to ask this question on 
>> svg-developers@yahoogroups.com.
>>  This email list is for discussing the SVG print specification, not 
>> really
>>  the behaviour of an implementation.
>>
>>  Having said that, a programmatic zoom is indeed possible in the SVG
>>  language (on any viewer). You have a few choices:
>>
>>  - if you have scripting (such as the Adobe viewer or Batik) you can
>>    modify the currentScale attribute on the SVGDocument element via
>>    Javascript.
>>
>>  - if you have animation you can have an element in the SVG document
>>    that animates the viewBox attribute on the root <svg> element.
>>
>>  There are also a few other ways (such as putting a transform on a <g>
>>  element that wraps everything you want to zoom).
>>
>>  I suggest the first option (using javascript). If you do a search
>>  for "svg currentScale" you'll probably find code.
>>
>>  Dean
>>
>
> --<D:\\Personal\\Others\\sign.jpg>
Received on Wednesday, 20 April 2005 22:37:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:17:07 GMT