The section was 4,579 bytes; it is 4,018. Every convention, check and the workspace map's crate and layer columns stay; only descriptions are shorter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#523, #513, #246 and #159 each get a test that drives the real window:
the count's node never overlaps the header buttons at any column width,
the Movie Explorer's last row is at the bottom of a tall pane, a click on
the fill or the stroke square opens its picker, and the stage keeps its
place while the pointer crosses the right-hand dock at the interface
scales the report names (not reproduced on main; the test pins it).
#512: layer names take Ctrl-click, Shift-click and Shift+Up/Down, the
selected rows are highlighted and read as selected, a drag on one of them
moves them all, and Delete Layer and New Folder act on them.
#195 (after outside PR #222): the ruler drops the frame selection instead
of selecting the playhead's frame on every layer, so F5, Shift+F5 and
Shift+F6 act on every layer and F6 and F7 stay on the active layer.
#523 (on outside PR #535): the count is laid out without the raw size call
the typography guideline test refuses, and is a label to screen readers.
layer.select takes add: toggle | range (Ctrl- and Shift-click, #512). The
selection is session state and counts only while it holds the active layer.
layer.move and layer.delete act on it (or on layers: [ids]) in one undo step,
all or none; layer.new_folder puts several selected layers into the folder.
layer.toggle_mask locks the mask it makes, as the SVG importer does and as
Animate leaves it, so the result shows without the mask's edge (#429).
A block that keeps needing a fallback face is laid out again on every edit; asking each
listed face for each letter again opened about thirty font files a time. Measured on a
three-character block with two characters no face has: 1.0 ms a layout before, 0.09 ms after.
In a field while a movie plays, Left and Right move the caret by where text is displayed,
crossing lines by the paragraph's direction, and a selection across a change of direction is
highlighted in its separate stretches. text.create and text.edit return a note naming the
families letters were borrowed from and how many characters no installed font has; the stage
shows it in the status bar. craft-text is pinned to the craft-libs commit the app already
uses. ADR 0130, the guide, the roadmap and the parity matrix say what is done and what is
left; outside PRs #39 and #40 are credited.
Layout resolves embedding levels with craft-text's bidi module (UAX #9), shapes each run in
stretches of one direction and one script, finds lines in reading order on shaped clusters
and then puts each line in the order it is displayed. A cluster its run's face has no glyph
for is shaped again, whole, in the first fallback face that has all of it: the listed
families first, then any installed face. Carets carry each cluster's box and the paragraph's
direction.
Rebuilds outside PRs #39 and #40 (SoldierPePe) on the styled-text layout of ADR 0085: lines
in reading order and never inside a cluster, the fallback family list, a cluster moving whole
with its marks, invisible format characters not counted as missing.
Tests run on fonts made in memory, so they are the same on every computer.
Both were written against the single-style layout that lived in crates/text/src/lib.rs
before ADR 0085 moved layout to styled runs in rich.rs, so their changes to lib.rs,
cmds_text.rs and the roadmap conflict and are resolved to main's side here. The commits
that follow rebuild the same behaviour on the styled-text layout and carry over their
ideas and tests: line breaks found in reading order and never inside a cluster, a face
chosen per cluster with its marks, invisible format characters not counted as missing,
the fallback family list, and the note that says which characters show as boxes.
Kept from the merge as it is: the ADR 0012 paragraph and the unicode-bidi entry, which
the next commit replaces with craft-text's bidi module.
Main already fixed the picture cache race and split the command fuzz (#525), so this keeps
main's versions of both; what remains here is the longer thread deadlines in tests.