Librsvg is a library for rendering Scalable Vector Graphics files (SVG). Specifically, it can take non-animated, non-scripted SVG documents and render them into a Cairo surface. Normally this means an in-memory raster surface, but it could also be any of the other surface types that Cairo supports.
Scripting or animation - Librsvg reads SVG data and renders it to a static image. There is no provision to execute scripts that may control animation parameters.
Access to the DOM - Librsvg creates an internal representation of the SVG data, but it does not provide outside access to the resulting Document Object Model (DOM).
SVG fonts - Instead, librsvg relies on the system's fonts, particularly those that are available through Cairo/Pango.
Table of Contents
- Overview of Librsvg's API
- Recommendations for Applications
- Migrating from old APIs
- Migrating from the deprecated API that does not use viewports
- Migrating to the geometry APIs
- RsvgHandle — Loads SVG data into memory.
- Using RSVG with GIO
- Using RSVG with Cairo
- Deprecated functions to render with Cairo
- Deprecated functions to render to GdkPixbuf
- Version checks — Check for the version of librsvg being used.