按照官方的说法:Cairo is a vector graphics library with cross-device output support.
翻译过来
源代码在线查看: cairo-svg.xml
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ ]> SVG Surfaces 3 CAIRO Library 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_svg_surface_createcairo_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_svg_surface_create_for_streamcairo_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 () cairo_svg_surface_restrict_to_versionvoid cairo_svg_surface_restrict_to_version (cairo_surface_t *surface, cairo_svg_version_t version); Since 1.2 enum cairo_svg_version_t cairo_svg_version_ttypedef enum { CAIRO_SVG_VERSION_1_1, CAIRO_SVG_VERSION_1_2 } cairo_svg_version_t; cairo_svg_get_versions () cairo_svg_get_versionsvoid cairo_svg_get_versions (cairo_svg_version_t const **versions, int *num_versions); Since 1.2 cairo_svg_version_to_string () cairo_svg_version_to_stringconst char* cairo_svg_version_to_string (cairo_svg_version_t version); Since 1.2