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 666666 - use fallback resolution from the cairo context
use fallback resolution from the cairo context
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-21 15:41 UTC by Christian Persch
Modified: 2017-12-13 17:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2011-12-21 15:41:15 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.
Comment 1 GNOME Infrastructure Team 2017-12-13 17:51:09 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/58.