Tavmjong Bah wrote
On Thu, 2014-12-04 at 15:40 +0100, Krzysztof KosiĆski wrote:
My understanding is that SVG root width / height is different from all the other unit-bearing lengths in the document. For example, when a rect is defined with height equal to 10mm, it is converted to the relevant number of user units, using the fixed ratio of 96 user units per inch.
Correct
Well, that was not entirely correct...
When a rect is defined to be '10 mm' by the user input, it's not "converted to the relevant number of user units, using the fixed ratio of 96 user units per inch". This may happen only if the ratio between the viewbox and the page size happens to be 96. Instead, it's converted to some number of user units which, considering the page size and the viewbox ratio, do correspond to 10 mm.
The counter-calculation (from the user unit to the real world unit) must always pass through the page size and the viewbox ratio which is not fixed anymore.
Am I wrong?
Luca
-- View this message in context: http://inkscape.13.x6.nabble.com/Units-rehash-tp4972318p4972333.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.