Files
pdfcraft/crates
Eric Kaden ea57770e24 M9: size the Sign tab to its field
The tab was a fixed 18 pt chip that needed a 24 pt field: too big on a
29 pt signature box and missing on a 19 pt one. It is now 0.4 of the
field's height on screen, from 10 to 18 pt, and its inset, icon,
padding, label font and corners scale with it (3, 12, 5, 11 and 4 pt on
the 18 pt tab). The label shows from 14 pt up while the whole tab fits
in half the field's width; otherwise the tab is a square icon chip, and
it is left out only when that chip doesn't fit or the field isn't
finite. Which fields get a tab, the click and the tool condition are
unchanged.

The layout tests now cover an 18 pt tab with its label, an 11.6 pt and
a 10 pt icon chip on 29 pt and 19 pt fields, no tab on a 12 pt field,
the label and then the tab dropping as a field narrows, and the scaled
font and corners.
2026-10-20 22:07:08 -04:00
..
…