#![deny(missing_docs)]
#![deny(clippy::float_arithmetic)]
#![deny(clippy::undocumented_unsafe_blocks)]
#![cfg_attr(docsrs, feature(doc_cfg))]
mod atoms;
mod color;
mod dim;
mod error;
mod style_map;
mod symbols;
pub mod font;
pub mod layout;
pub mod parser;
pub mod render;
pub use atoms::symbol_atom_kind;
pub use color::{named_color, parse_color_spec, Color, ColorTable};
pub use dim::{Dim, DIM_PREC};
pub use error::{Error, FontError, ParseError};
pub use font::{
GlyphMetrics, MathFont, STIX_TWO_MATH_NAME, STIX_TWO_MATH_OTF, STIX_TWO_MATH_SHA256,
};
pub use layout::{
layout, layout_with_numbering, BoxContent, MathBox, MathParams, MathStyle, NumberFormat,
NumberStyle, NumberingConfig, NumberingState,
};
pub use parser::{
format_tokens, parse, parse_with_colors, preprocess, tokenize, AccentKind, AtomKind, ColSpec,
DelimSize, Delimiter, EnvRow, EqNumber, IntegralKind, MathNode, MatrixStyle, PhantomKind,
SpaceKind, TextStyle, Token,
};
#[cfg(feature = "egui")]
pub use render::egui::{latex_to_shapes, paint_egui, shapes};
pub use render::egui::{render_egui, EguiOptions};
pub use render::png::{latex_to_png, render_png, PngBackground, PngOptions};
pub use render::svg::{latex_to_svg, render_svg, SvgOptions};
pub use style_map::styled_char;
pub use symbols::{category_count, glyph_char, lookup, symbols, SymbolEntry, SymbolKind};