drawlang-render 0.1.2

SVG/PNG/PDF backends for the drawlang DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Render backends for drawlang: SVG (native writer) and PNG (via resvg).
//!
//! Text is measured (in drawlang-core) with the same bundled font the PNG
//! rasterizer uses, so labels fit exactly. The SVG writer is deterministic:
//! same geometry in, byte-identical output.

mod png;
mod svg;
pub mod theme;

pub use png::render_png;
pub use svg::{fmt_f, render_svg};