skia-rs-svg

Crates.ioskia-rs-svg
lib.rsskia-rs-svg
version0.2.0
created_at2026-01-02 20:51:02.333009+00
updated_at2026-01-03 18:47:12.509513+00
descriptionSVG parsing and rendering for skia-rs
homepagehttps://github.com/pegasusheavy/skia-rs
repositoryhttps://github.com/pegasusheavy/skia-rs
max_upload_size
id2019177
size115,973
Joseph R. Quinn (quinnjr)

documentation

https://docs.rs/skia-rs-svg

README

skia-rs-svg

SVG parsing and rendering for skia-rs, a pure Rust implementation of the Skia 2D graphics library.

Features

  • SVG DOM: Parse SVG documents
  • Elements: rect, circle, ellipse, path, line, polyline, polygon
  • Attributes: fill, stroke, transform, opacity
  • Rendering: Render SVG to canvas

Usage

use skia_rs_svg::SvgDom;

// Parse an SVG file
let svg = SvgDom::from_file("icon.svg")?;

// Get the size
let (width, height) = svg.size();

// Render to canvas
svg.render(canvas);

License

MIT OR Apache-2.0

See the main repository for more information.

Commit count: 0

cargo fmt