Display problem with document size of different unit
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:
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)
-
-
repo owner - changed status to open
-
repo owner -
repo owner Add Length struct (ref
#67,#53)→ <<cset b48881e7f722>>
-
repo owner Improve Length struct (ref
#67)→ <<cset 06dcbfd9c445>>
-
repo owner - changed status to closed
Display width/height with specified units (close
#67)→ <<cset 08df42af72db>>
-
repo owner - changed milestone to 1.3.0
- Log in to comment
I have the same problem with svg plots generated in R.