Skip to main content

Module layout

Module layout 

Source
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§

LayoutEngine
Layout engine - manages visual representation of all lines
VisualLineInfo
Visual line information
WrapPoint
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