Expand description
oxiui-text — rich text layer bridging OxiUI to OxiText/OxiFont.
Provides text measurement, layout, hit-testing, selection, rich text spans,
LRU shaping cache, font fallback, decorations, truncation, and hyperlink
detection — all built on pure-Rust oxitext + oxifont.
Re-exports§
pub use atlas::GlyphAtlas;pub use atlas::GlyphEntry;pub use atlas::GlyphKey;pub use editor::TextArea;pub use editor::WrapMode;pub use highlight::Highlighter;pub use highlight::KeywordHighlighter;pub use ime::Preedit;pub use input::TextInput;pub use label::Label;
Modules§
- atlas
- Glyph atlas: LRU cache of pre-rasterized glyph bitmaps.
- cache
- Hand-rolled LRU shaping cache — no external
lrucrate. - decoration
- Text decoration line segments (underline, overline, strikethrough).
- editor
- Multi-line text editor state.
- fallback
- Font fallback chain with Unicode-range based script detection.
- highlight
- Syntax and keyword highlighting.
- hyperlink
- Hyperlink detection in plain text strings.
- ime
- IME (Input Method Editor) composition state.
- input
- Single-line editable text input widget state.
- label
- Static text display widget state.
- layout
- Text layout with alignment and hit-testing.
- rich
- Rich text span model.
- selection
- Text selection model: anchor/focus positions, byte↔grapheme mapping, highlight rect computation, and word/line boundary navigation.
- truncation
- Text truncation and ellipsis insertion.
Structs§
- Glyph
Position - The position of a single glyph cluster in the laid-out text.
- Lazy
Text Pipeline - A
TextPipelinethat defers parsing its font bytes until the first use. - Paragraph
Metrics - Aggregate metrics for a whole laid-out block of text.
- Positioned
Glyph - A glyph positioned on the layout canvas.
- Render
Result - The result of rendering a string of text.
- Shaped
Text - The result of shaping and laying out a string of text.
- Text
Pipeline - End-to-end text shaping + rasterization pipeline for OxiUI.
- Text
Style - Builder-style text style for OxiUI widgets.
Enums§
- Text
Error - All errors that can originate from the
oxiui-textlayer.