Skip to main content

Module render

Module render 

Source
Expand description

Box model → SVG, PNG, or egui primitives. Render backends: SVG, PNG (tiny-skia, feature png), and egui (features = ["egui"]).

Pipeline: crate::layout::MathBox → this module. SVG is the v1 output. PNG and egui are optional. Without their features those entry points return crate::Error::Unsupported.

Re-exports§

pub use egui::latex_to_shapes;egui
pub use egui::paint_egui;egui
pub use egui::shapes;egui
pub use egui::render_egui;
pub use egui::EguiOptions;
pub use png::latex_to_png;
pub use png::render_png;
pub use png::PngBackground;
pub use png::PngOptions;
pub use svg::latex_to_svg;
pub use svg::render_svg;
pub use svg::SvgOptions;

Modules§

egui
egui primitive backend. Milestone 10; optional feature egui.
png
PNG raster backend. Milestone 9; optional feature png pulls in tiny-skia.
svg
Self-contained SVG renderer. Glyphs are <path> elements from STIX Two Math.