Closed udif closed 6 years ago
@udif Excellent observation. We now have some standards for the precision, which should be applied here.
Do you need a quick fix?
Actually, I remembered why there's "scaling" now.
Basically, SVG documents have an default size of 100%. What 100% means depends on the device being used, i.e. Screen, printer, plotter, etc.
If you KNOW the size required then set width and height on the SVG document.
If you don't provide width or height then OpenJSCAD uses the standard screen size (in pixels) to scale the SVG to fit the screen.
Yes. Rounding will occur.
Also, view box does mean much... it just sets the outside dimensions of the view. It does NOT set the size or precision of the device. The viewpoint of a computer screen and the viewpoint of a printer maybe totally different.
Maybe this is why Microsoft cannot create documents that fit a "page".
OpenJSCAD is not rounding numbers when it should, while importing SVG:
http://labs.koenklaren.nl/kodi-logo/kodi-logo.svg
Produces this:
..... I've trimmed the rest, I think it's pretty obvious: Notice the 99999's after the 8th digit (there are also 00000's in the trimmed part not here)