Module text_runs

Source
Expand description

Visible paragraph run geometry. Visible paragraph run values and baseline-derived visual bounds.

Structs§

EditorTextRun
One visible logical paragraph run in viewport coordinates.

Functions§

first_layout_baseline
Returns the first shaped line’s baseline in layout-local logical pixels.
layout_visual_height
Returns the run height in logical pixels with an editor-line-height floor.
run_visual_bottom
Returns a run’s bottom edge relative to the text viewport.
run_visual_top
Returns a run’s top edge relative to the text viewport.