Skip to main content

Crate oxiui_text

Crate oxiui_text 

Source
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 lru crate.
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§

GlyphPosition
The position of a single glyph cluster in the laid-out text.
LazyTextPipeline
A TextPipeline that defers parsing its font bytes until the first use.
ParagraphMetrics
Aggregate metrics for a whole laid-out block of text.
PositionedGlyph
A glyph positioned on the layout canvas.
RenderResult
The result of rendering a string of text.
ShapedText
The result of shaping and laying out a string of text.
TextPipeline
End-to-end text shaping + rasterization pipeline for OxiUI.
TextStyle
Builder-style text style for OxiUI widgets.

Enums§

TextError
All errors that can originate from the oxiui-text layer.