Files
vectorcraft/crates
dotCooCoo bebaebdbe4 Type: an unfinished Font Size value stays with the text it was typed for
The Font Size field of the Control bar and the Contextual Task Bar kept a
value typed and not yet committed when other text with the same size was
selected, and the next Enter applied it there: 3+ typed for one text
object, then 1 and Enter with another selected, gave the second one 4 pt.

The field now passes an edit target to NumberField::edit_target: the
document, its File > Revert count, its Undo and Redo restore count (after
which a node id can name another object), and the text text.setStyle
changes (format_target): the range or story the Type tool has selected,
the whole edited text at a caret, else the selected stories. When it
changes, the field drops the unfinished value.

The range is clamped to the text, so Select All over characters that are
already selected keeps the value, and a range over the whole text counts
as a caret, which also changes the whole text. While Real-time Drawing off leaves
typing unapplied, the range is the Type tool's own offsets clamped to the
length the text has with that typing, so a range reaching into it is
another range than the applied text it starts in, and keeping the typing
keeps the value. In a threaded frame, where keeping the typing can reflow
text from the other frames, the offsets are not clamped.

SymbolPart derives Hash so the target can hold it.
2026-12-03 12:50:25 -08:00
..