On Sat, 2015-07-04 at 22:19 +0200, m .h. van der velde wrote:
Hi Tav, (et al)
Thanks for the explanation, that’s clear.
So, in Inkscape, I selected all the lines, set their width to 1px and saved the file again.
The GUI uses "real world" units so 1px must be interpreted according to the CSS px value relative to 1 cm. Inkscape 0.91 and earlier use the (incorrect) value of 90px per inch which is the same as 35.43...px per cm.
When I examine the file, it has the line-thickness saved in the style-attribute of the path:
style="stroke-width:0.02822223;…
Now I wonder, where does this 0.02822 come from? What calculation is made?
Taking the inverse of 35.43... give 0.2822223.
Trunk uses the correct CSS defined ratio of 96px per inch. Opening a 0.91 or earlier file in trunk will give the exact same rendering (as long at the 'viewBox' is defined or the width and height is in pixels) but strokes that were reported to be 1px wide in 0.91 will be reported as 1.0666... px wide in trunk.
Tav