After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775350 - incorrect text alignment in the rendering of an svg tree
incorrect text alignment in the rendering of an svg tree
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.40.x
Other Mac OS
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-29 16:21 UTC by Ulrich
Modified: 2017-12-13 18:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
zip archive contains files svg test02.html, svg test02.R and svg test02.pdf as described above (18.43 KB, application/zip)
2016-11-29 16:21 UTC, Ulrich
Details

Description Ulrich 2016-11-29 16:21:56 UTC
Created attachment 340987 [details]
zip archive contains files svg test02.html, svg test02.R and svg test02.pdf as described above

Hi everyone,

attached file 'svg test02.html' shows a simple svg tree.
I would like to render it as pdf using R package 'rsvg'.

The attached program 'svg test02.R' converts the svg character string of file 
'svg test02.html' to raw format. Then it uses function 'rsvg_pdf' of package 'rsvg' to generate the pdf file.

The generated pdf file 'svg test02.pdf' shows the tree correctly besides number 8,4 which is displayed more left than in 'svg test02.html'.

The R package maintainer says: "You have to ask rendering questions to the librsvg folks: https://wiki.gnome.org/LibRsvg. The R package only has bindings to librsvg2, it does not actually implement the rendering." See https://github.com/jeroenooms/rsvg/issues/4

Could you help?

Regards,
Ulrich
Comment 1 André Klapper 2016-11-29 16:37:38 UTC
Which exact librsvg version is used?
Comment 2 Ulrich 2016-12-03 11:22:53 UTC
I use librsvg-2.40.16_1 on macOS Sierra.
Comment 3 Ulrich 2016-12-07 20:00:19 UTC
As Jeroen points out in his comments (https://github.com/jeroenooms/rsvg/issues/4), the described problem also arises when executing 

rsvg-convert svgtest02.html -f pdf -o test.pdf

This leaves out R.
Comment 4 GNOME Infrastructure Team 2017-12-13 18:24:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/156.