W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2005

SVG rendered in pixels no matter the specified units

From: Juan Lanus <jlanus@netscape.net>
Date: Mon, 25 Apr 2005 12:56:35 +0000 (UTC)
To: www-amaya@w3.org
Message-ID: <loom.20050425T144742-430@post.gmane.org>

See example at:
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" 
  <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"  />
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.
Juan Lanus
Received on Monday, 25 April 2005 13:03:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:33 UTC