Expand description
Phase 3: Layout and Soft Wrapping (Headless Layout Engine)
Calculates the visual representation of text given a container width. Computes character widths based on UAX #11 and implements headless reflow algorithm.
Structs§
- Layout
Engine - Layout engine - manages visual representation of all lines
- Visual
Line Info - Visual line information
- Wrap
Point - Wrap point
Functions§
- calculate_
wrap_ points - Calculate wrap points for text
- char_
width - Calculate visual width of a character (based on UAX #11)
- str_
width - Calculate total visual width of a string