Takumi
Takumi renders a UI component tree to an image.
This crate is the facade. The entry-point functions live at the crate root;
the curated, stable types live in [prelude]. Glob the prelude, build a node
tree, and call [render].
Example
use *;
use render;
let node = container;
// Reuse one font context across renders to share the decode cache.
let mut fonts = default;
fonts.register?;
let options = builder
.viewport
.node
.fonts
.build;
let image = render?;
Feature flags
raster-backend(default): raster rendering backend.svg-source(default): SVG image sources in the core and raster backend.svg-backend: vector SVG output backend (render_svg).woff2: WOFF2 font support.woff: WOFF font support.rayon: parallelism in the raster backend; needsraster-backend.unstable: re-export the backend crates with no semver guarantee.