sinomo-ui-text 0.2.0

Text shaping, font registration, and layout for SUI.
Documentation
#![forbid(unsafe_code)]

mod cache;
mod flatten;
mod font;
mod layout;
mod model;
mod style;
mod system;

pub use cache::TextLayoutCacheSnapshot;
pub use font::{FontRegistry, RegisteredFont, ResolvedTextFace};
pub use model::{
    FontFamilyStack, PersistentTextLayout, ShapedGlyph, ShapedText, ShapedTextWindow, TextAffinity,
    TextAlign, TextCaret, TextCluster, TextCursor, TextDirection, TextDocument, TextFlowDirection,
    TextGlyphInstance, TextLayout, TextLayoutHandle, TextLayoutId, TextLayoutMetadata,
    TextLayoutRegistry, TextLayoutRequest, TextLayoutRun, TextLayoutVersion, TextLayoutView,
    TextLine, TextLineWindow, TextMeasurement, TextParagraph, TextParagraphLayout,
    TextParagraphStyle, TextRun, TextRunView, TextSelection, TextSelectionGeometry, TextSpan,
    TextSpanId, TextStyle, TextWrap, TextWritingMode,
};
pub use style::{FontFeature, FontFeatures, FontStretch, FontStyle, FontWeight};
pub use system::{
    RuntimeTextTimingDiagnostics, TextSystem, begin_text_timing_collection,
    take_text_timing_collection,
};

/// Bundled Noto Sans font used by browser fallback and rendering comparisons.
pub const BUNDLED_NOTO_SANS_REGULAR_FONT: &[u8] = include_bytes!("../assets/NotoSans-Regular.ttf");

#[cfg(test)]
mod tests;