manpagez: man pages & more
html files: rsvg-2.0
Home | html | info | man

Part I. API Reference

Librsvg is a library for rendering Scalable Vector Graphics 1.1 files (SVG 1.1). Specifically, it can take non-animated, non-scripted SVG data and render it 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.

Librsvg supports many of the graphic features in the SVG 1.1 specification. The main features of SVG 1.1 that librsvg does not support are the following:

  • 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
RsvgHandle — Loads SVG data into memory.
Using RSVG with GIO
Using RSVG with cairo
Using RSVG with GdkPixbuf — How to render SVGs into GdkPixbufs, for easy use in GTK+ applications
Version check and feature tests
© 2000-2022
Individual documents may contain additional copyright information.