Auto-sized native buttons measure labels differently from their paint font
Author: jorgensandhaugCreated Sep 26, 2026Updated Sep 26, 2026
On render-enabled v0.2.3 (1a3169d), an unconstrained system-ui button labeled Save and sign in reserves insufficient width and wraps; shorter labels can clip. Static glyph advance measurements differ from the actual selected font and text shaper. In a synthetic 390x844 fixture, the button was 130x54 before the change and 149x35 afterward, with its label on one line.
I have a focused candidate fix with regression tests and intend to submit it as a draft for maintainer review. Tested on Linux x86_64.
Source: h4ckf0r0day/obscura