measure_layout
Mojo function 🡭
measure_layout
fn def measure_layout(layout: TextLayout) -> TextBlockBoundsThe 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 fromprepare_text.
Returns:
TextBlockBounds: The block’s anchor-relative bounding box.