On Fri, Jul 08, 2005 at 09:00:29PM -0700, Jon A. Cruz wrote:
lode leroy wrote:
I would like to have an option in "simplify" that puts the control points on pixel boundaries, in order to reduce the precision of the numbers in the svg file. Now every floating point number has 5 digits, whereas 0 or 1 digit would probably not make a visually significant change.
Ahhh...
But there's a problem.
What's a pixel???
Are we 90 DPI, 75 DPI, 72 DPI...?
In this context, I suppose it means a user unit in the <svg> element's coordinate space.
We don't in general know how many mm a user unit is; though if the outermost <svg> element has a viewBox attribute and has width & height attributes specified in mm/in/pt/... then we at least know the default size of a user unit if the viewing program hasn't overridden our specified width/height hints.
Similarly, we don't in general know how many device pixels or even CSS px a user unit is, though the default interpretation in absence of a viewBox attribute would be for one user unit to equal one CSS px, and for a CSS px to be an integer number of device pixels.
pjrm.