measure_text
Calculate text render dimensions in a widget font to prevent clipping by verifying it fits within a max width.
Instructions
Measure how wide/tall text renders in a widget font, so a box fits its content (prevents clipping). "items" is a list of {text, font?, size?, weight?, max_width?}. Returns {items:[{text,width,height,fits}]} where "fits" is whether the text is within max_width. Font names come from list_widgets().appearance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |