fn text_bbox(anchor: Pos2, text: &str, width: BoxWidth) -> RectExpand description
Estimate a text block’s on-canvas bounding box from its top-left anchor.
gui_rect has no painter to lay out a galley, so we approximate from the
title font’s size. The estimate stands only until the box is first
measured, so a slightly padded one is good enough.