Registry / other / librsvg

librsvg

JSON →
library2.40.23vcpkgunverified

A small library to render Scalable Vector Graphics (SVG)

vcpkg install librsvg
INSTALL
IMPORT
SIG · LIBRSVG
L
librsvg
othercppv2.40.23
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

librsvg/rsvg.h
#include <librsvg/rsvg.h>

Render an SVG file to a Cairo surface

#include <librsvg/rsvg.h> #include <cairo.h> int main() { RsvgHandle *handle = rsvg_handle_new_from_file("image.svg", NULL); cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 100, 100); cairo_t *cr = cairo_create(surface); rsvg_handle_render_cairo(handle, cr); cairo_destroy(cr); cairo_surface_destroy(surface); g_object_unref(handle); return 0; }
Debug
Known issues
gotchalibrsvg requires Cairo and GLib; ensure these dependencies are installed.
fix
Add cairo and glib to your vcpkg dependencies.
affects: *
Upgrade
Version history
2.40.23latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

librsvg — pip install librsvg · libregistry