-----Original Message----- From: bulia byak [mailto:buliabyak@...400...] Sent: Tuesday, January 11, 2011 15:20 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Undefined ratio between px and inch
On Tue, Jan 11, 2011 at 9:09 AM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
On the user maillist there has been a discussion on a (imo) very serious flaw in the units (px, cm, in, m, ...) in Inkscape.
This is a very old issue, and your summary of it is correct. Adding a viewbox was the solution proposed back then, but never implemented. If we now decide to pursue it, the first thing is, of course, not to break something that worked before. We need to try adding this viewbox declaration to old files to make sure they work as before both in Inkscape and in the most important "other software" (such as Firefox). Or, if we will be adding this only to the new document templates, we should check if this will alter the behavior in some important and/or unpleasant ways.
One question I have: assuming the viewbox will match the size of the page, will it clip the content to the page, preventing users from drawing anything in the margins?
This is also what I am concerned about. I think the viewBox solution is more of a "smart hack" than a solution. I would much rather have a simple attribute that only defines the px unit. Something like "pxtoinchratio=90", or "dpi=90". The viewbox attribute does more than that it seems, which complicates things.
-Johan