Skip to content
measure_layout

measure_layout

Mojo function 🡭

measure_layout

fn def measure_layout(layout: TextLayout) -> TextBlockBounds

The prepared layout’s anchor-relative bounding box: what measure_text_block returns for the same arguments, without laying the text out again.

Args:

  • layout (TextLayout): A layout from prepare_text.

Returns:

TextBlockBounds: The block’s anchor-relative bounding box.