MenTaLguY wrote:
Correct; viewBox only applies a translation+scaling factor (which affects user and other units alike). [ user units (before any transformation) = pixels ]
If you try to use "real world" units within a viewBoxed document, they will be distorted by the viewBox depending on the particular UA's notion of the current resolution.
Conceivably, you could just avoid using a viewBox and user units altogether, except for one thing -- SVG paths can only be specified in user units.
Without a viewBox, of course, the real world -> user unit relationship will still vary depending on the resolution. So that won't work either.
In summary: everything but user and relative units (relative units being percent, em, and ex) are useless in SVG, except for the purpose of setting document size.
I know this, but as far as I can tell InkScape almost exclusively uses user units anyway (except in the styles as far as I can tell, for line widths and so on), so why not do what you propose below?
In practice, the only way to do "real world units" in SVG is to set the document dimensions in some absolute real world unit, establish a viewBox, and then use nothing but user and relative units in the document proper.
From MAILER-DAEMON Sun Sep 26 19:26:01 2004
MIME-Version: 1.0 In-Reply-To: <20040927022556.1F67422BDC@...252...> Message-Id: <VS19943-08@...252...> Content-Type: multipart/report; report-type=delivery-status; boundary="----------=_1096251962-19943-9" From: amavisd-new <postmaster@...252...> To: inkscape-user@lists.sourceforge.net Date: Mon, 27 Sep 2004 10:26:02 +0800 (CST) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 0.0 SF_CHICKENPOX_SLASH BODY: Text interparsed with / 0.0 SF_CHICKENPOX_MINUS BODY: Text interparsed with - 0.0 SF_CHICKENPOX_AT BODY: Text interparsed with @ 0.0 SF_CHICKENPOX_PERIOD BODY: Text interparsed with . Subject: [Inkscape-user] VIRUS (Win32.Mix) IN YOUR MAIL Sender: inkscape-user-admin@lists.sourceforge.net Errors-To: inkscape-user-admin@lists.sourceforge.net X-BeenThere: inkscape-user@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk Reply-To: inkscape-user@lists.sourceforge.net List-Unsubscribe: https://lists.sourceforge.net/lists/listinfo/inkscape-user, mailto:inkscape-user-request@lists.sourceforge.net?subject=unsubscribe List-Id: Inkscape User Community <inkscape-user.lists.sourceforge.net> List-Post: mailto:inkscape-user@lists.sourceforge.net List-Help: mailto:inkscape-user-request@lists.sourceforge.net?subject=help List-Subscribe: https://lists.sourceforge.net/lists/listinfo/inkscape-user, mailto:inkscape-user-request@lists.sourceforge.net?subject=subscribe List-Archive: http://sourceforge.net/mailarchive/forum.php?forum=inkscape-user
This is a multi-part message in MIME format...
------------=_1096251962-19943-9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline
VIRUS ALERT
Our virus checker found virus: Win32.Mix banned filenames: message.scr, .exe in your email to the following recipient: -> cwhuang@...251...
Delivery of the email was stopped!
Please check your system for viruses, or ask your system administrator to do so.
For your reference, here are headers from your email: ------------------------- BEGIN HEADERS ----------------------------- Received: from linux.org.tw (pcp05080054pcs.ivylnd01.pa.comcast.net [68.85.82.163]) by tlug.sinica.edu.tw (Postfix) with ESMTP id 1F67422BDC for <cwhuang@...251...>; Mon, 27 Sep 2004 10:25:56 +0800 (CST) From: inkscape-user@lists.sourceforge.net To: cwhuang@...251... Subject: Mail Delivery (failure cwhuang@...251...) Date: Sun, 26 Sep 2004 19:25:52 -0700 MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----=_NextPart_000_001B_01C0CA80.6B015D10" X-Priority: 3 X-MSMail-Priority: Normal Message-Id: <20040927022556.1F67422BDC@...252...> -------------------------- END HEADERS ------------------------------
------------=_1096251962-19943-9 Content-Type: message/delivery-status Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: Delivery error report
Reporting-MTA: dns; tlug.sinica.edu.tw Received-From-MTA: smtp; tlug.sinica.edu.tw ([127.0.0.1]) Arrival-Date: Mon, 27 Sep 2004 10:26:02 +0800 (CST)
Final-Recipient: rfc822; cwhuang@...251... Action: failed Status: 5.7.1 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=19943-08 - VIRUS: Win32.Mix Last-Attempt-Date: Mon, 27 Sep 2004 10:26:02 +0800 (CST)
------------=_1096251962-19943-9 Content-Type: text/rfc822-headers Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-Description: Undelivered-message headers
Received: from linux.org.tw (pcp05080054pcs.ivylnd01.pa.comcast.net [68.85.82.163]) by tlug.sinica.edu.tw (Postfix) with ESMTP id 1F67422BDC for <cwhuang@...251...>; Mon, 27 Sep 2004 10:25:56 +0800 (CST) From: inkscape-user@lists.sourceforge.net To: cwhuang@...251... Subject: Mail Delivery (failure cwhuang@...251...) Date: Sun, 26 Sep 2004 19:25:52 -0700 MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----=_NextPart_000_001B_01C0CA80.6B015D10" X-Priority: 3 X-MSMail-Priority: Normal Message-Id: <20040927022556.1F67422BDC@...252...>
------------=_1096251962-19943-9--