GNOME Bugzilla – Bug 666666
use fallback resolution from the cairo context
Last modified: 2017-12-13 17:51:09 UTC
Since the DPI is only used during rendering, rsvg should use the fallback resolution from the passed cairo_t's target, if set, instead of its own default DPI setting. That also makes it easier to use the same handle with different targets, e.g. rendering on screen, and printing, without having to re-set the DPI inbetween. rsvg_handle_set_dpi[_x_y] and the rsvg_set_default_dpi[_x_y] should be deprecated, and the internal default be -1 meaning to consult the cairo target. Also need to make sure to set the fallback resolution on the surfaces rsvg creates internally during rendering.
-- 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/58.