
On 11-9-2014 14:58, Tavmjong Bah wrote:
Units in Inkscape =================
Introduction
The recent debate about units in Inkscape highlights the fact that we do not have a clearly defined approach on how to handle units in Inkscape. Units are not as straight-forward as one should think they are. This essay attempts to resolve this problem.
This is not true, from my point of view. We had and have a very clearly defined approach to units. This was implemented as part of a GSoC project last year, and has not changed. The approach has been communicated several times on the mailing list. Inkscape is behaving exactly as you write in your email. If it is not, it is a bug, and we are aware of some of them.
Some issues that we are aware of for a long time now (you touch upon some of them in your mail): - explicit units in certain areas (font size, stroke width, ...) - "px" should be renamed - bugs related to toplevel width/height specs without units (e.g. in our default document template) or it going out-of-sync with inkscape:document-units.
On 11-9-2014 14:58, Tavmjong Bah wrote:
Changing the "Inkscape GUI unit" should not introduce any 'transforms' on elements (as seems to being done now)
Inkscape is not doing the transforms thing. David Mathog added code that did so, and subsequently removed that code.
On 11-9-2014 14:58, Tavmjong Bah wrote:
<svg width="100mm" height="100mm" viewBox="0 0 100 100">
describes a drawing 100mm x 100mm where one 'user-unit' is equivalent to one mm.
If the Inkscape property inkscape:document-units="mm" then the GUI would show a width of '25.4' for a rectangle 25.4 'user-units' wide. If inkscape:document-units="in", the GUI would show '1.0'.
inkscape:document-units is exactly that: *document* units. Not UI units. Although in practice, the default unit in the UI is taken from inkscape:document-units. If document-units is different from the unit defined by
<svg width="..." height="..." viewBox="...">
then that is the start of a disaster; it is a bug to allow that to happen.
I do not know why it seems that there is no clear view about how we want units to behave. (sorry, I'm pissed off about again a unit discussion where we have to reiterate the basics)
-Johan