Jasper van de Gronde wrote:
Aaron and Sarah Spike wrote:
On the page tab of the document preferences dialog Inkscape appears to use 72 points to one inch. The units in the path data seem to be 90 units to one inch. What units are these? Is there a way to make Inkscape store the path data units as inches or centimeters?
The path data stored in an SVG file is in "user units". If you want to know what they are in real-world units you should look at the width and height of the svg, as well as the viewBox. If you divide the width and height of the SVG by the width and height of the viewBox you'll get the size of user units.
Yes. The first thing I did was to look for the viewbox in the parent SVG element. There isn't one. That is why I figured it must be stored in real-world units. So I sat down and reread the spec. I believe user units can also be decended from a parent element, perhaps my screen?
Aaron Spike
If it helps, here is an example of the svg created by Inkscape with no viewbox:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg id="svg1" sodipodi:version="0.32" inkscape:version="0.39" width="13.500000in" height="21.000000in" sodipodi:docbase="/home/aaron/images/guitardesigns" sodipodi:docname="iceman2.svg" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs id="defs3" /> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.75591361" inkscape:cx="1169.1367" inkscape:cy="1279.0340" inkscape:window-width="640" inkscape:window-height="480" gridspacingy="1.0000000in" gridspacingx="1.0000000in" gridoriginy="0.0000000in" gridoriginx="0.0000000in" showgrid="true" borderlayer="top" /> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#f9010d;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" d="M 496.74862,192.09691 C 390.85340,301.40406 233.67083,318.25588 122.15130,395.68242 C 92.720391,416.11591 92.405673,429.33556 105.86446,468.97320 C 137.61482,566.02019 233.94529,706.61575 236.15918,827.28368 C 239.33801,993.93080 -0.37705483,1291.1399 1.1692917,1527.6178 C 2.1471214,1764.6755 436.06903,1785.2002 594.46967,1885.9283 C 624.54893,1653.3581 1138.5943,1747.8243 1180.7959,1446.1836 C 1211.2278,1228.6687 937.81053,930.27334 944.63673,745.84948 C 948.39734,540.10180 1200.9262,193.19916 1221.5130,69.945613 C 1228.6963,-26.549942 1068.5826,-37.988549 961.08256,139.36890 C 1128.8221,132.79385 859.91400,433.73961 788.38284,434.87061 C 698.89482,436.28554 697.28685,252.63932 659.61703,208.38375 C 606.54206,146.02978 573.14545,113.23859 496.74862,192.09691 z " id="path921" sodipodi:nodetypes="ccccccccccccc" /> </svg>