summaryrefslogtreecommitdiff
path: root/test/svg2png.c
Commit message (Collapse)AuthorAgeFilesLines
* Disable deprecation warnings from librsvgEmmanuele Bassi2021-04-271-0/+3
| | | | This is a test utility, we don't really care about deprecations.
* svg2png: Remove deprecated handle closing function callGeorge Matsumura2020-09-021-3/+0
| | | | | | | | rsvg_handle_close is no longer required after creating a handle with rsvg_handle_new_from_file. It causes a deprecation warning during compilation as well. This change removes it. Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
* Don't use deprecated rsvg_set_default_dpi()Federico Mena Quintero2019-03-121-2/+1
| | | | Use rsvg_handle_set_dpi() instead.
* svg2png: remove unused headersAdrian Johnson2017-10-151-2/+0
|
* svg2png: fix deprecated warningAdrian Johnson2016-04-161-6/+33
| | | | | rsvg_pixbuf_from_file() is deprecated, replaced by rsvg_handle_new_from_file() + rsvg_handle_render_cairo().
* svg2png: Only call deprecated g_type_init() for old glib versions.Bryce Harrington2015-07-281-0/+2
| | | | | | | | | | | | | | | | | | Quells the following warning: pdf2png.c:52:5: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations] g_type_init (); ^ svg2png.c:47:5: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations] g_type_init (); ^ Patch authored by arpitj01@gmail.com Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=81197 Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
* SVG: Convert SVG file with a resolution of 72 dpi.Emmanuel Pacaud2006-05-021-2/+1
| | | | That means 1 point = 1 pixel
* add missing header. Fix #5544.Emmanuel Pacaud2006-01-191-0/+1
|
* CAIRO_CAN_TEST_SVG_SURFACE depends on librsvg.Emmanuel Pacaud2005-12-191-0/+62
cairo_svg_surface_t owns a xml node, for support of svg_surface_composite. (_cairo_svg_surface_create_for_document): init xml_node. All surfaces except first one are stored in defs node. (emit_composite_image_pattern): returns pattern size, and don't call emit_transform if is_pattern == TRUE. (emit_composite_svg_pattern): do something. (emit_composite_pattern): returns pattern size. (_cairo_svg_surface_composite): xml_node is stored in cairo_svg_surface_t now. (emit_surface_pattern): emit surface pattern width here. Fix property names. (_cairo_svg_path_close_path): don't close path if no current point. (_cairo_svg_surface_fill_rectangles): new. (_cairo_svg_surface_fill): emit fill rule. xml_node is in surface now. (_cairo_svg_surface_composite_trapezoids): xml_node is in surface now. (_cairo_svg_surface_stroke): ditto. (_cairo_svg_surface_intersect_clip_path): ditto. Emit fill rule. ignore svg2png. build svg2png utility. test SVG backend if CAIRO_HAS_SVG_SURFACE && CAIRO_CAN_TEST_SVG_SURFACE. new.