Skip to main content

valo_text/
lib.rs

1//! valo-text — typographer + paragraph layout, no GPU.
2//! The pipeline: style spans → per-character font fallback →
3//! bidi levels → harfrust shaping (endless line) → greedy wrapping with
4//! UAX #14 opportunities → per-line UAX #9 visual reorder → placed glyph runs.
5//! Glyph raster (swash alpha masks, SDF distance fields, skrifa outline
6//! paths) also lives here — CPU-only; the renderer's atlas calls in.
7
8mod colr;
9mod font;
10mod paragraph;
11mod raster;
12mod sdf;
13mod shape;
14mod style;
15mod wrap;
16
17pub use font::{
18    FaceSet, Font, FontAttrs, FontCollection, FontData, FontDemand, FontId, FontSource, FontUid,
19};
20pub use paragraph::{
21    Line, LineMetrics, Paragraph, ParagraphBuilder, PlacedGlyph, PlacedRun, PositionWithAffinity,
22};
23pub use raster::{glyph_path, GlyphImage, GlyphStroke, Rasterizer, SDF_PAD};
24pub use style::{
25    Decoration, DecorationKind, ParagraphStyle, Shadow, TextAlign, TextDirection, TextStyle,
26    VariantCaps,
27};