![](https://secure.gravatar.com/avatar/84524eb6e916f5d548e7c7c0e41fd127.jpg?s=120&d=mm&r=g)
Hi,
I've gone ahead and changed the 'experimental' branch to 96 pixels to inch per SVG/CSS specification. From the feedback I've received, I don't believe this will cause any significant problems but the only way to tell for sure is to try it out.
Tav
On Wed, 2014-04-23 at 15:09 +0200, Tavmjong Bah wrote:
Hi TimeWaster and Nick,
Alvin Penner has suggested that I contact both of you about a change to Inkscape I am pushing for:
Currently Inkscape transforms non-pixel units (e.g 'in', 'cm') using the ratio 90 pixels per inch. This ratio is hinted at in SVG 1.1 but not explicitly defined (someday I'll blog about the history of this). CSS 2.1 does explicitly defined the ratio to be 96 pixels per inch, a standard that all web browsers as well a Batik have followed for many years. I recently proposed that in SVG one should be allowed to set this ratio but that idea was quickly rejected by the standards group.
Previous to Inkscape 0.91 all dimensions inside of Inkscape were stored only as pixels values (despite allowing the user to enter dimensions in other units). As long as one did not import SVGs from other sources the ratio between px and in was not all that important. With 0.91, one can optionally set font-size to be output in points. To ensure consistency with what is rendered in Inkscape and what is displayed by other SVG renderers we should move to the standard 96 pixels per inch per CSS2.1.
To make the change, two files must be modified:
share/extensions/inkex.py share/ui/units.xml
and probably the default export resolution should also be changed in preferences.
Alvin is afraid this will cause trouble in the world of desktop cutters and plotters. Do you see this as a problem?
Thanks,
Tav
BTW, the 0.91 release notes suggest that extensions relying on units other than pixels were already broken by the work on units.
Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel