On 5-8-2014 21:52, Tavmjong Bah wrote:
Yes, templates should be fixed. I had a quick look but didn't see an easy fix (need to wade through the template code). I probably won't have time to look into it seriously until the end of the month. If the 'viewBox' and the 'width' and 'height' are off, that will cause problems. I also need to understand the purpose of the 'inkscape:document-units' property.
In short, 'inkscape:document-units' is what links width/height to the viewBox. height = 297mm width = 210mm viewBox = 0 0 210 297 implies document-units = mm
In the UI, a user can user can set the document-units, but not the viewbox. The viewbox is our way of telling SVG what document-unit the user selected: i.e. the viewbox is set such that '10' in a path corresponds to '10 mm' for document-units = mm.
Last time I checked, there are still a few bugs left where viewbox and document-units go out-of-sync, something which should never be allowed to happen according to our definition of document-units.
-Johan