Commits on Source (2)
-
* src/rsvg-port.c (rsvg_port_preset_slot): Use `rsvg_handle_render_document` instead of `rsvg_handle_render_cairo`, and `rsvg_handle_render_layer` instead of `rsvg_handle_render_cairo_sub`, as suggested by the warning, conditionally on newer librsvg 2.52+. Signed-off-by:Hin-Tak Leung <htl10@users.sourceforge.net>
73c2159b -
Excerpts from `rsvg_handle_get_intrinsic_dimensions` section in `librsvg/rsvg.h`: ``` Before librsvg 2.54.0, the `out_has_width` and `out_has_height` arguments would be set to true or false depending on whether the SVG document actually had `width` and `height` attributes, respectively. However, since librsvg 2.54.0, `width` and `height` are now [geometry properties](https://www.w3.org/TR/SVG2/geometry.html ) per the SVG2 specification; they are not plain attributes. SVG2 made it so that the initial value of those properties is `auto`, which is equivalent to specifying a value of `100%`. In this sense, even SVG documents which lack `width` or `height` attributes semantically have to make them default to `100%`. This is why since librsvg 2.54.0, `out_has_width` and `out_has_heigth` are always returned as `TRUE`, since with SVG2 all documents *have* a default width and height of `100%`. ``` * src/rsvg-port.c (rsvg_port_preset_slot): Adjust for change of behavior of `rsvg_handle_get_intrinsic_dimensions` in librsvg 2.53+. We avoid `LIBRSVG_CHECK_VERSION` as it is possible to build against one version but run against another version. Signed-off-by:
Hin-Tak Leung <htl10@users.sourceforge.net>
626b43db