Re: SVG rendered in pixels no matter the specified units

Le Lundi 25 Avril 2005 14:56, Juan Lanus a écrit :
> Hi,
> See example at:
> http://www.w3.org/TR/SVG11/images/shapes/rect01.svg
> The source, found at http://www.w3.org/TR/SVG11/shapes.html#ExampleRect01 :
>   <?xml version="1.0" standalone="no"?>
>   <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
>     "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
>   <svg width="12cm" height="4cm" viewBox="0 0 1200 400"
>        xmlns="http://www.w3.org/2000/svg" version="1.1">
>     <desc>Example rect01 - rectangle with sharp corners</desc>
>     <!-- Show outline of canvas using 'rect' element -->
>     <rect x="1" y="1" width="1198" height="398"
>           fill="none" stroke="blue" stroke-width="2"/>
>     <rect x="400" y="100" width="400" height="200"
>           fill="yellow" stroke="navy" stroke-width="10"  />
>   </svg>
> states viewBox="0 0 1200 400", a viewbox of 12,00 x 4,00 cm.
> Amaya renders a 1200 x 400 px viewbox.
>
> When the original units are mm then the effect is quite more noticeable 
> :-) This prevents me to show graphics done with OpenOffice/StarOffice Draw.
> Saludos!

SVG transformations are only supported by 9.x versions.
You can test, it works with 9.1.

Regards
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Thursday, 28 April 2005 08:34:40 UTC