QSvgWidget not displaying file completely
-
@wavelike
You can use
https://wetransfer.com/
use the ... button
to send as link
and paste link here.
all free. no registration needed.
-
Here it is
https://we.tl/t-DBVDCAfDvm -
Hi
It seems the texts are not real text objects but some sort of path pr letter. (maybe the glyphs)Maybe there is some options in Cairo package that allows to use text object instead ?
Seems other noticed this
https://stackoverflow.com/questions/18258654/r-inkscape-text-labels-in-svg-graphics-exported-from-r-did-not-recognized-as
and https://cran.r-project.org/web/packages/svglite/index.html
can be used to export as text but not sure it fit rest of your use case :) -
@mrjj Yes, that surprised me too, as I wanted to look at the part of the file where the legend/title/other text is located and the search came back empty. My knowledge of graphics files, including SVG, is next to non-existant, so I wasn't exactly shocked. Furthermore, just thinking about something called vector graphics, the ignorant me imagines that the file does not contain letters but relative positions of pixels or whatever... I'd better shut up, because I don't know what I am talking about haha.
-
@wavelike
Hi
Well a hires PNG should also work nicely.
Just for info. SVG is vector which means its not pixels but drawing functions so it can scale
without becoming pixellated. However, Cairo seems to not excatly insert the letters as letter but some form of another drawing thing that Qt cant draw.SVG would look better if you were to print it on really hires printer or in A3 but in other cases, the PNG will look just as fine if you make sure its not lowres.
-
Just in case somebody stumbles upon this thread and also tried to use the Cairo SVG package with QSvgWidget - forget about Cairo as nice as it sometimes could be, as there is an R package ggiraph with a simple function dsvg(filename,...) and it produces a SVG file that is fully supported by Qt.