zenith_layout/lib.rs
1//! Text-shaping layer for Zenith.
2//!
3//! Shapes a text run into positioned glyphs using `rustybuzz` + `ttf-parser`
4//! (the same proven stack as the sibling `oxipdf` project). All third-party
5//! types are confined to `rustybuzz_engine`; downstream crates see only
6//! Zenith-owned records.
7
8pub mod engine;
9pub mod error;
10pub mod font_meta;
11pub mod rustybuzz_engine;
12
13// Curated flat re-exports for the public surface.
14pub use engine::{
15 FallbackResult, PositionedGlyph, ShapeRequest, TextDirection, TextLayoutEngine, ZenithGlyphRun,
16};
17pub use error::LayoutError;
18pub use font_meta::{FaceMetadata, face_metadata};
19pub use rustybuzz_engine::RustybuzzEngine;