Display problem with document size of different unit

Create issue
Issue #67 closed
Michael Maier created an issue

I encountered a display problem with files generated in Inkscape, if a custom size is set: Gapplin would only show a part of the SVG (with the upper left corner as origin). The attached test file (simply containing the text "Test" as paths) shows as follows: Screenshot.png

Looking at the SVG it seems that Gapplin is using the width and height attributes of the root SVG tag, but ignores the unit. In the attached file, the document size is stored in mm units. In the screenshot, exactly the same size values are shown, but as px. If stored without a unit symbol (thus px, for the test file this corresponds to 105.13026 width and 43.89979 height), the SVG is shown correctly.

The SVG renders correctly in Safari.

Comments (7)

  1. Log in to comment