按照官方的说法:Cairo is a vector graphics library with cross-device output support.
翻译过来
源代码在线查看: cairo-svg-surfaces.html
SVG Surfaces Cairo: A Vector Graphics Library Top | Description SVG Surfaces SVG Surfaces — Rendering SVG documents Synopsis cairo_surface_t* cairo_svg_surface_create (const char *filename, double width_in_points, double height_in_points); cairo_surface_t* cairo_svg_surface_create_for_stream (cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points); void cairo_svg_surface_restrict_to_version (cairo_surface_t *surface, cairo_svg_version_t version); enum cairo_svg_version_t; void cairo_svg_get_versions (cairo_svg_version_t const **versions, int *num_versions); const char* cairo_svg_version_to_string (cairo_svg_version_t version); Description Details cairo_svg_surface_create () cairo_surface_t* cairo_svg_surface_create (const char *filename, double width_in_points, double height_in_points); Since 1.2 cairo_svg_surface_create_for_stream () cairo_surface_t* cairo_svg_surface_create_for_stream (cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points); Since 1.2 cairo_svg_surface_restrict_to_version () void cairo_svg_surface_restrict_to_version (cairo_surface_t *surface, cairo_svg_version_t version); Since 1.2 enum cairo_svg_version_t typedef enum { CAIRO_SVG_VERSION_1_1, CAIRO_SVG_VERSION_1_2 } cairo_svg_version_t; cairo_svg_get_versions () void cairo_svg_get_versions (cairo_svg_version_t const **versions, int *num_versions); Since 1.2 cairo_svg_version_to_string () const char* cairo_svg_version_to_string (cairo_svg_version_t version); Since 1.2