On 05-11-12 10:56, Jelle wrote:
... So the question here is,.. is it humanly possible to create a setting of your units and their conversion to px so the whole SVG document starts using those unit settings?
What Inkscape should do, is allow setting (either implicitly or explicitly) both the width/height and(!) the viewBox. I actually started out implementing this in the document preferences dialog, with default settings that essentially gave sensible correspondences between pixels and the units used for the document size. However, it turns out that Inkscape essentially has three not completely compatible concepts of units.
Having said that, maybe there is still a way to do this, so feel free to try implementing setting viewBox along with the document size (or some such scheme). And if anyone feels like tackling the units system, here are the main files to look: src/sp-metric* src/helper/unit* src/util/unit*
I still might have some code lying around that removes most of sp-metric, so this could serve as a start.