Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
renderer_tool.cc File Reference
#include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <vector>
#include "absl/debugging/failure_signal_handler.h"
#include "absl/debugging/symbolize.h"
#include "donner/base/xml/XMLNode.h"
#include "donner/svg/SVG.h"
#include "donner/svg/renderer/RendererSkia.h"
#include "donner/svg/renderer/RendererUtils.h"
#include "donner/svg/resources/SandboxedFileResourceLoader.h"
Include dependency graph for renderer_tool.cc:

Classes

class  donner::svg::Trace
 Implements a simple RAII execution time tracer. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
 

Functions

void donner::svg::DumpTree (SVGElement element, int depth=0)
 Dump the SVG tree to the console, starting with element.
 
int donner::svg::main (int argc, char *argv[])
 Tool entry point, usage is described in the file header.
 

Detailed Description

Donner SVG Renderer Tool

Renders an .svg file and prints debugging information about it, such as the parsed tree and warnings. Saves the output to output.png.

USAGE: renderer_tool <filename> [--quiet] [--verbose] [--experimental]
filename: The SVG file to render.
--quiet: Do not output the parsed tree or warnings.
--verbose: Enable verbose rendering output.
--experimental: Enable experimental features.