AUDIO
Source snapshot · 12 October 2026

API reference / ravet_surface::bidi

Module bidi 

Expand description

Optional bounded single-line Unicode bidirectional ordering, before shaping.

Structs§

BidiLine
Borrowed complete single-line text with resolved base/byte levels and visual runs, using unicode-bidi’s pinned Unicode 16.0 data. No wrapping, script/font segmentation, glyph mirroring/combining reordering, caret or native UI is added. The downstream shaper owns mirroring/marks within each original logical run.
VisualTextRun
Logical UTF8 byte range in visual run order. Feed each original slice to a shaper with this direction; do not reverse its characters before shaping. Levels are line-adjusted Unicode embedding levels, not font/script boundaries.

Constants§

MAXIMUM_BIDI_RUNS
Visual directional runs returned after line ordering; backend work may allocate before this bound is checked. Processing belongs on UI/worker threads.