Hi,
Unless someone objects, I am going to make the change from 90 pixels to inch to 96 pixels to inch in the files:
share/extensions/inkex.py share/ui/units.xml
This may break some content but it is better to do it now than later, especially that we now are using the 'viewBox' attribute for scaling.
I am also wondering if the change to using 'pt' for the unit in 'font-size' is really the correct way to go. It appears that mixing 'px' and other units is not well advised.
Tav
On Mon, 2014-04-14 at 20:04 +0200, Johan Engelen wrote:
On 12-4-2014 2:26, Mark Schafer wrote:
What impact will that have on all extensions that work in actual units. e.g. making mods to the Gears-dev extension which converts everything assuming 90dpi is px.
There is the "unittouu" function to take care of this (so that the extension code need no longer worry). Look at rev. 12722. So when we have to change to 96 "px" per inch, for extension we would only have to make the change in one file (inkex.py).
So entries in mm draw an object of the correct size for printing at 90dpi. I am not using Viewboxes. I don't know how to make one. If we need to update extensions for 0.91 - I am happy to try to fix some. Cheers...
On 4/11/2014 11:57 PM, Tavmjong Bah wrote:
On Fri, 2014-04-11 at 13:52 +0200, Krzysztof KosiĆski wrote:
2014-04-11 13:39 GMT+02:00 Tavmjong Bah <tavmjong@...8...>:
<svg width="20in" height="15in" viewBox( 0 0 20 15 ) ... >
Once you have done this, one user unit is one inch. If you actually set a length to an inch inside the file (i.e. width="1in"), it will be interpreted as 90 inches since we use 90 user units per inch.
So the behavior is:
- In the width / height attributes on the topmost <svg> element, "in"
denotes the intended physical display size of the document. 2. Anywhere else, "in" denotes exactly 96px.
Is that correct?
Almost... "in" denotes 96 user units which is equal to 96px if there is no scaling.
Tav
Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel