#![doc(
html_logo_url = "https://raw.githubusercontent.com/kane50613/takumi/master/assets/images/takumi.svg",
html_favicon_url = "https://raw.githubusercontent.com/kane50613/takumi/master/assets/images/takumi.svg"
)]
#![deny(missing_docs)]
pub mod prelude {
pub use takumi_core::{
Error, Fonts, Result,
layout::node::{ImageData, ImageSourceInput, Node, NodeKind, RgbaImage, TextData},
resources::{
font::{FontError, FontOverride, FontResource, FontSource, GenericFamily, RegisteredFamily},
image::{ImageCacheMode, ImageSource},
},
style::*,
viewport::Viewport,
};
#[cfg(feature = "from-html")]
pub use takumi_html::{DEFAULT_MAX_DEPTH, FromHtml, FromHtmlOptions, HtmlError, StylePresets};
#[cfg(feature = "raster-backend")]
pub use takumi_raster::{
AnimatedGifOptions, AnimatedPngOptions, AnimatedWebpOptions, AnimationFormat, AnimationFrame,
Bitmap, DitheringAlgorithm, MeasuredNode, MeasuredTextRun, OutputFormat, Quality,
RenderOptions, SequentialScene,
};
#[cfg(feature = "svg-backend")]
pub use takumi_svg::SvgOptions;
}
#[cfg(feature = "from-html")]
pub use takumi_html::from_html;
#[cfg(feature = "raster-backend")]
pub use takumi_raster::{
measure, render, render_animation, write_animated_gif, write_animated_png, write_animated_webp,
write_animation, write_image,
};
#[cfg(feature = "svg-backend")]
pub use takumi_svg::render as render_svg;
#[cfg(feature = "unstable")]
pub mod unstable {
pub use takumi_core as base;
#[cfg(feature = "from-html")]
pub use takumi_html as html;
#[cfg(feature = "raster-backend")]
pub use takumi_raster as raster;
#[cfg(feature = "svg-backend")]
pub use takumi_svg as svg;
}