|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
donner-svg is a command line utility for rendering SVG files to PNG and previewing output in terminal environments. A convenience wrapper is checked in at tools/donner-svg, which is the recommended way to invoke it from inside the repository.
Build and run:
donner-svg always renders with Donner's CPU (tiny-skia) backend, under every build configuration. A one-shot command-line render cannot amortize the GPU backend's fixed device and shader setup cost, so the CPU backend is strictly better for single-frame output. The GPU (Geode) backend is Donner's interactive renderer, used by long-lived surfaces such as the editor where that setup cost is paid once across many frames.
--preview renders the SVG directly in your terminal using Unicode quadrant block characters with 24-bit truecolor foreground/background, giving 2×2 sub-pixels per character cell.
--interactive implies --preview and additionally enables mouse-driven selection: hover over the terminal image to see the element under the cursor, and click to lock the selection. The right-hand pane shows the DOM path and computed style of the selected element.