nightshade-text 0.57.0

Text shaping, styling, and glyph geometry shared by the nightshade renderer and UI.
Documentation
//! Text shaping, styling, and glyph geometry for the nightshade engine.
//!
//! Everything here sits on the path from a `&str` to laid-out glyphs: the
//! shaping context and font database ([`font_engine`]), the styling that
//! describes a run ([`text::TextProperties`]), the slot storage consumers index
//! into ([`text::TextCache`]), and the geometry shaping produces
//! ([`text_data::TextMesh`]). Nothing that is not on that path belongs here.
//!
//! The crate is a leaf: it depends on no other nightshade crate, so the
//! renderer and the retained UI can both build on it. Turning glyph geometry
//! into GPU buffers stays in the renderer, which owns the glyph atlas.
//!
//! [`text_data`] is always available. Shaping pulls in `cosmic-text` and sits
//! behind the `shaping` feature, on by default.

pub mod text;
pub mod text_data;

#[cfg(feature = "shaping")]
pub mod font_engine;
#[cfg(feature = "shaping")]
pub mod text_wrapping;

#[cfg(feature = "shaping")]
pub use cosmic_text;