mirror of
https://github.com/penpot/penpot.git
synced 2026-11-27 05:10:32 +00:00
With the WebGL renderer, applying a typography changed the text but left its box at the old size, because nothing asked the renderer to measure the text again. apply-typography now waits for the new font and resizes the auto-grow texts inside its undo step, as the Design tab does. The typography bar at the bottom of the canvas had its own copy of this logic, with no resize and no undo step: the font-load heal resized the box later without recording undo, so Ctrl+Z left the new size. It now calls apply-typography. Closes #13124 AI-assisted-by: claude-opus-5-5