svgSurfaceRestrictToVersion
fn
void svgSurfaceRestrictToVersion(cairo.surface.Surface surface, cairo.types.SvgVersion version_)Restricts the generated SVG file to version. See [cairo.global.svgGetVersions] for a list of available version values that can be used here.
This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.
Parameters
surface | a SVG #cairo_surface_t |
version_ | SVG version |