#![forbid(unsafe_code)]
mod cache;
mod flatten;
mod font;
mod layout;
mod model;
mod prepared;
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 prepared::{PreparationCacheSnapshot, TextPreparationCacheSnapshot};
pub use style::{FontFeature, FontFeatures, FontStretch, FontStyle, FontWeight};
pub use system::{
RuntimeTextTimingDiagnostics, TextSystem, begin_text_timing_collection,
take_text_timing_collection,
};
pub const BUNDLED_NOTO_SANS_REGULAR_FONT: &[u8] = include_bytes!("../assets/NotoSans-Regular.ttf");
#[cfg(test)]
mod tests;