valo-text 0.6.0

Typographer and paragraph layout for valo: shaping, bidi, wrapping, glyph raster, SDF
Documentation
//! valo-text — typographer + paragraph layout, no GPU.
//! The pipeline: style spans → per-character font fallback →
//! bidi levels → harfrust shaping (endless line) → greedy wrapping with
//! UAX #14 opportunities → per-line UAX #9 visual reorder → placed glyph runs.
//! Glyph raster (swash alpha masks, SDF distance fields, skrifa outline
//! paths) also lives here — CPU-only; the renderer's atlas calls in.

mod colr;
mod font;
mod paragraph;
mod raster;
mod sdf;
mod shape;
mod style;
#[cfg(feature = "woff2")]
mod woff2;
mod wrap;

#[cfg(feature = "woff2")]
#[doc(hidden)]
pub fn woff2_to_sfnt_for_probe(bytes: &[u8]) -> Option<Vec<u8>> {
    woff2::to_sfnt(bytes, 0)
}

pub use font::{
    FaceSet, Font, FontAttrs, FontCollection, FontData, FontDemand, FontId, FontSource, FontUid,
};
pub use paragraph::{
    Line, LineMetrics, Paragraph, ParagraphBuilder, PlacedGlyph, PlacedRun, PositionWithAffinity,
};
pub use raster::{glyph_path, GlyphImage, GlyphRaster, GlyphStroke, Rasterizer, SDF_PAD};
pub use style::{
    Decoration, DecorationKind, ParagraphStyle, Shadow, TextAlign, TextDirection, TextStyle,
    VariantCaps,
};