Skip to main content

drawlang_render/
lib.rs

1//! Render backends for drawlang: SVG (native writer) and PNG (via resvg).
2//!
3//! Text is measured (in drawlang-core) with the same bundled font the PNG
4//! rasterizer uses, so labels fit exactly. The SVG writer is deterministic:
5//! same geometry in, byte-identical output.
6
7mod png;
8mod svg;
9pub mod theme;
10
11pub use png::render_png;
12pub use svg::{fmt_f, render_svg};