- status: open --> closed
- assigned_to: Fridrich Strba
- Milestone: untriaged --> current
Hi,
In Inkscape (https://gitlab.com/inkscape/inkscape/-/issues/2983) we've noticed that cdr imports have been scaled down 25% on import. This is caused by differing assumptions about dpi (72 user units per inch in librevenge v. 96 user units per inch in Inkscape).
https://www.w3.org/TR/css3-values/#absolute-lengths (old specs for SVG https://www.w3.org/TR/SVG11/coords.html#Units )
One solution that doesn't change the assumption, but defines the conversion from user units to inches, would be to add a viewbox to the root svg. This has the advantage that if the specs changed the user units to inch ratio again, no change would be necessary.
This does change behavior when width and/or height are not defined.
Another solution would be to make the more extensive changes so svg outputs with an assumption that 96 user units equals 1 inch (or even make the amount configurable). I can't test such changes, and they would be rather extensive, so I haven't tried this approach. This would not be compatible with older svgs.