ropensci / rsvg

SVG renderer for R based on librsvg2
Other
95 stars 1 forks source link

Rendering issues with inkscape svg's #19

Open DunLug opened 4 years ago

DunLug commented 4 years ago

Hello everyone,

I'm writing my thesis with bookdown and to include the pictures I create them with inkscape and export them automatically to pdf using rsvg. Recently, some svg have issues when rendering, such as arrows that are not consistent with the inkscape display.

I've made a small reproductible example (I changed the extension to txt to allow github upload) :

export.txt

With this svg file :

base.txt

My example contains exports in png and pdf with dev='pdf' in some cases while I had this issue before. However, I was able to fix it by removing dev='pdf' option while this is not the case now.

The export give me this output : export.pdf

My setup is : r: 3.6.1 rsvg: 2.1 knitr: 1.29

Thanks for your help

jeroen commented 4 years ago

The rendering is controlled by librsvg. I just provide the r-bindings. What operating system do you have?

DunLug commented 4 years ago

I'm using Windows 10, maybe I can check on the librsvg side to see if there's any opened issues about this.